Skip to content

Instantly share code, notes, and snippets.

@matthewrudy
Created April 13, 2009 23:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthewrudy/94828 to your computer and use it in GitHub Desktop.
Save matthewrudy/94828 to your computer and use it in GitHub Desktop.
<VirtualHost *>
ServerName mydomain.local
DocumentRoot /home/matthew/myapp/public
RailsEnv development
</VirtualHost>
<VirtualHost *>
ServerName somethingelse.local
DocumentRoot /home/matthew/myapp/public/other_domain
#PassengerAppRoot /home/matthew/myapp
#RailsEnv development
ProxyPass / http://mydomain.local/other_domain/
ProxyPassReverse / http://mydomain.local/myapp/
#RewriteEngine on
#RewriteRule ^(.*)$ http://mydomain.local/myapp$1 [P]
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment