Skip to content

Instantly share code, notes, and snippets.

@Swop
Created July 17, 2013 23:43
Show Gist options
  • Save Swop/6025565 to your computer and use it in GitHub Desktop.
Save Swop/6025565 to your computer and use it in GitHub Desktop.
Sets a proxy on Apache
<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>
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