Sunday, January 29, 2012

Running multiple vHosts on same Apache - Passenger

Not a big deal, just make sure that your VirtualHost settings are set properly :



# This is import... don't forget to use NameVirtualHost if you're using a unique IP for multi Vhosts..



ServerAlias your_hostname_here.com *.your_hostname_here.com
ServerName www.your_hostname_here.com
DocumentRoot /var/www/your_hostname_here/current/public

AllowOverride all
Options -MultiViews





# Then.. you can just copy and paste, changing the hostname...