I'm running a Rails app on an ubuntu hardy box with passenger. I also have a couple basic html sites running on the same box. My problem is that the apache vhost set up for the html sites seems to be blocking my Rails app from resolving at the proper url.
I have a number of Rails apps running on different slices using passenger, so I know how to make this work generally.
I'm not getting any errors in the terminal or in the apache logs. Everything appears to be working perfectly, but the site will simply not resolve at the proper url. Instead, when I go to the url where my Rails app should be, I see the site that is the apache default vhost on my slice.
To confirm my assumption, I disabled all of the vhosts on my slice associated with the static html pages. After doing that, my Rails app appeared at the proper url and worked fine. When I re-enabled the vhosts for the html sites, I was back to the same problem again.
My bet is that there's an easy configuration fix to this, but I can't figure it out. Anybody know?
Thanks.
Update to answer question in the comment
Yes, the static sites work fine by themselves. Under all circumstances, the static sites are fine.
My vhost files are using super basic setup. Static site vhost files look like this:
<VirtualHost *:80>
ServerName foo.com
ServerAlias www.foo.com
DirectoryIndex index.html
DocumentRoot /home/blah/public_html/foo/public
</VirtualHost>
Passenger vhost file looks like this:
<VirtualHost *:80>
ServerName bar.com
ServerAlias www.bar.com
DocumentRoot /home/blah/public_html/bar/current/public
</VirtualHost>