Skip to content

Instantly share code, notes, and snippets.

@adammck
Created April 16, 2009 12:11
Show Gist options
  • Save adammck/96388 to your computer and use it in GitHub Desktop.
Save adammck/96388 to your computer and use it in GitHub Desktop.
# in sites-available/example.com
<VirtualHost *:80>
ServerName example.com
ProxyPass /path http://localhost:4000/
ProxyPassReverse /path http://localhost:4000/
ProxyPreserveHost on
ProxyRequests on
</VirtualHost>
# in mods-available/ports.conf
<Proxy http://localhost:4000>
Order deny,allow
Deny from all
Allow from all
</Proxy>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment