Jump to content

MCMA with Apache2


RamasesN3

Recommended Posts

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?

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...