Ruby on Rails Virtual Host craziness
11 September, 2010
Posted by on
I followed the instructions for installing ruby with passenger from this blog: http://benr75.com/2008/04/12/setup-mod_rails-phusion-mac-os-x-leopard
I had a similar problem to Tom’s comment where all my web requests ended up being handled by passenger (mod_rails). RTFM’ing about virtual hosts found a solution for me:
The first virtual host becomes the main site. So you need a virtual host for “localhost” with ServerName localhost and DocumentRoot matching the main server DocumentRoot.
Otherwise the rails app will become the default, and the entire site will be handled by passenger. Most frustating.