Jump to content

Recommended Posts

Posted

I have MCMyAdmin running (very nice once I got it going). Handy for remote administration however I would like to present the MCMA pages through my Apache2 server (currently hosting a status banner and overviewer map for my world).

I tried the second option in the answer here http://forums.phonicuk.com/default.aspx?g=posts&t=1019

but I can't get it to work. I even tried putting the additional lines suggested for the httpd.conf into the apache2.conf instead, it just stopped apache from starting (something about not being able to load the modules, I can recreate the error if necessary).

Can anyone help?

Posted

Are you trying to have the Apache actually host the pages for McMyAdmin? Or, are you trying to leave McMyAdmin where it is and access it via web pages through Apache? This second way is what the link you provided is doing: Apache is just passing the traffic off to port 9001, making it look like Apache is hosting it, when it is actually not.

If the second way as outlined in the link is acceptable (for upgrading the McMyAdmin installation, this certainly seems like the easiest way), then if you're getting errors about modules not loading, it's possible they simply aren't installed. Can you post the error log you're getting when Apache fails to start?

Posted

Are you trying to have the Apache actually host the pages for McMyAdmin? Or, are you trying to leave McMyAdmin where it is and access it via web pages through Apache? This second way is what the link you provided is doing: Apache is just passing the traffic off to port 9001, making it look like Apache is hosting it, when it is actually not.

If the second way as outlined in the link is acceptable (for upgrading the McMyAdmin installation, this certainly seems like the easiest way), then if you're getting errors about modules not loading, it's possible they simply aren't installed. Can you post the error log you're getting when Apache fails to start?

Got the modules to load with help from an apache forum. Now it starts with no errors but still doesn't work.

I am leaving mcma to do its thing and trying to reverse proxy it from apache2. Tried putting the code in the proxy config, as suggested by the apache forum (can't remember the address) and set up some sym links to various things but still no luck. I think I'll give up on it, was mainly to be able to access it from work where all ports except 80 are blocked

Posted

Got the modules to load with help from an apache forum. Now it starts with no errors but still doesn't work.

I am leaving mcma to do its thing and trying to reverse proxy it from apache2. Tried putting the code in the proxy config, as suggested by the apache forum (can't remember the address) and set up some sym links to various things but still no luck. I think I'll give up on it, was mainly to be able to access it from work where all ports except 80 are blocked

And you're doing it this way (in httpd.conf)?

<VirtualHost *:80>

    ServerName yourdomainnamehere.ca

    ProxyRequests Off

    ProxyPreserveHost On

    <Proxy *>

    Order allow,deny

    Allow from all

    </Proxy>

    ProxyPass /mcma/ http://localhost:9001/

    ProxyPassReverse /mcma/ http://localhost:9001/

    RewriteRule ^/mcma$ http://yourdomainnamehere.ca/mcma/ [R,L]

</VirtualHost>

/yoursite/mcma should not exist or be a symlink to anything, and 9001 should of course be the port of the MCMA server.

Posted

yes

And you're doing it this way (in httpd.conf)?

<VirtualHost *:80>

    ServerName yourdomainnamehere.ca

    ProxyRequests Off

    ProxyPreserveHost On

    <Proxy *>

    Order allow,deny

    Allow from all

    </Proxy>

    ProxyPass /mcma/ http://localhost:9001/

    ProxyPassReverse /mcma/ http://localhost:9001/

    RewriteRule ^/mcma$ http://yourdomainnamehere.ca/mcma/ [R,L]

</VirtualHost>

/yoursite/mcma should not exist or be a symlink to anything, and 9001 should of course be the port of the MCMA server.

Yes, that is what I was trying. I have tried it in the httpd.conf and in the apahce2.conf, I think that I currently have that code in proxiedhosts file, modifying the suggestions made here http://ubuntuguide.org/wiki/Apache2_reverse_proxies, given that it looks like the same sort of thing that I was trying to do.

The /mysite/mcma floder doesn't exist and doesn't symlink. The only symlinks are the ones suggested in the link above.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...