Last active
August 29, 2015 14:02
-
-
Save dukeofgaming/b6b5163450da244ca699 to your computer and use it in GitHub Desktop.
Reverse proxy in Apache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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