I'm serving several PHP sites on Apache2. Now I'm trying to also serve a Rails app with mod_passenger.
Thing is: when I set mod_passenger to listen on railsapp.com:81, it works. Also the PHP sites work. Now if I set railsapp.com:80, ALL the sites show the rails app, no PHP sites any more!
# cat phpsite.com
<VirtualHost *:80>
ServerAdmin webmaster@phpsite.com
ServerName phpsite.com
DocumentRoot /var/www/phpsite.com
<Directory /var/www/phpsite.com>
Order Deny,Allow
Allow from all
</Directory>
</VirtualHost>
# cat railsapp.com
<VirtualHost railsapp.com:81>
ServerName railsapp.com
DocumentRoot /var/railsapp.com/public
<Directory /var/railsapp.com/public>
AllowOverride all
Options -MultiViews
</Directory>
</VirtualHost>
This way, the rails app works on port 81 and the other sites work on their "normal" address, i.e. without specifying a port. When I change the second file to this:
# cat railsapp.com
<VirtualHost railsapp.com:80> #<-------------- 81 -> 80
ServerName railsapp.com
DocumentRoot /var/railsapp.com/public
<Directory /var/railsapp.com/public>
AllowOverride all
Options -MultiViews
</Directory>
</VirtualHost>
then ALL the sites show the railsapp, although it clearly states to only listen on railsapp.com:80.
Any ideas?
Thank you, MrB