Skip to content

Instantly share code, notes, and snippets.

@raldred
Created December 18, 2009 17:19
Show Gist options
  • Save raldred/259625 to your computer and use it in GitHub Desktop.
Save raldred/259625 to your computer and use it in GitHub Desktop.
apache config for passenger multiple vhosts using same source
NameVirtualHost 127.0.0.1:80
NameVirtualHost 10.0.0.1:80
<VirtualHost 127.0.0.1:80>
DocumentRoot /Users/robaldred/Sites/app/public
RewriteEngine On
ServerName app
RailsEnv development
</VirtualHost>
<VirtualHost 10.0.0.1:80>
DocumentRoot /Users/robaldred/Sites/app/public
RewriteEngine On
ServerName app-test
RailsEnv test
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment