Skip to content

Instantly share code, notes, and snippets.

@dukeofgaming
Last active August 29, 2015 14:02
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 dukeofgaming/b6b5163450da244ca699 to your computer and use it in GitHub Desktop.
Save dukeofgaming/b6b5163450da244ca699 to your computer and use it in GitHub Desktop.
Reverse proxy in Apache
#/etc/httpd/conf/extra/httpd-vhosts.conf
NameVirtualHost *:80
<VirtualHost *:80>
ServerName {hostname}
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /rhodecode http://{hostname}:{port}/rhodecode
ProxyPassReverse /rhodecode http://{hostname}:{port}/rhodecode
<Location />
Order allow,deny
Allow from all
</Location>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment