Created
July 17, 2013 23:43
-
-
Save Swop/6025565 to your computer and use it in GitHub Desktop.
Sets a proxy on Apache
This file contains hidden or 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
<VirtualHost *> | |
ServerName foo.com | |
ProxyRequests Off | |
ProxyPreserveHost On | |
ProxyPass / http://bar.com/ | |
ProxyPassReverse / http://foobar.com/ | |
<Proxy *> | |
Order deny,allow | |
Allow from all | |
</Proxy> | |
<Location /> | |
Order allow,deny | |
Allow from all | |
</Location> | |
</VirtualHost> |
This file contains hidden or 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
LoadModule proxy_module modules/mod_proxy.so | |
LoadModule proxy_http_module modules/mod_proxy_http.so |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment