I have upgraded to Mountain OSX Lion 10.8 since it’s release yesterday and although the installation went pretty smooth, I am noticing some issues with my Apache setup. I use Railo with Tomcat as the servlet engine and Apache as the webserver. If you have a similar setup, here are the minor things you would need to do to get back up and running on OSX 10.8 :-

  • OSX 10.8 comes bundled with Apache 2.2.22 and what I found was that you will not see your virtual hosts at all when you first run it. That’s a simple fix though. Go to your /etc/apache2/httpd.conf and uncomment the following line
    # Virtual hosts
    Include /private/etc/apache2/extra/httpd-vhosts.conf

    This will let you see all your virtual hosts again.

  • The other thing I noticed was that my Railo installation was not working. I have a Railo Server with Tomcat 7 installed and I use AJP Proxy to forward requests to Tomcat from Apache. Apparently, since this is a default Apache setup, you would need to add back the Proxy configuration again to your http.conf. Add this to the end of your httpd.conf file and you will be done.
    <Proxy *>
          Allow from 127.0.0.1
    </Proxy>
    
    ProxyPreserveHost On
    ProxyPassMatch ^/flex2gateway/(.*)$ ajp://localhost:8009/flex2gateway/$1
    ProxyPassMatch ^/messagebroker/(.*)$ ajp://localhost:8009/messagebroker/$1
    ProxyPassMatch  ^/(.+\.cf[cm])(/.*)?$  ajp://localhost:8009/$1$2

Once the above 2 things are done, restart Apache

sudo apachectl restart

And you should be good to go 🙂

Tagged with:  

2 Responses to Getting Railo working under Mountain Lion 10.8

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 445 other subscribers

© 2011 Anuj Gakhar
%d bloggers like this: