Skip to content

Instantly share code, notes, and snippets.

@svs14
Created December 26, 2013 02:21
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 svs14/8128954 to your computer and use it in GitHub Desktop.
Save svs14/8128954 to your computer and use it in GitHub Desktop.
Setup HTTP reverse proxy in Apache. Add this configuration to /etc/apache2/conf.d/. Ensure proxy_http module for Apache is enabled.
<IfModule mod_proxy_http.c>
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
# Reverse proxy template (replace <> with your respective settings)
ProxyPass /<context> http://localhost:<port>/<context>
ProxyPassReverse /<context> http://localhost:<port>/<context>
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment