Skip to content

Instantly share code, notes, and snippets.

@j4k
Created April 2, 2016 14:01
Show Gist options
  • Select an option

  • Save j4k/41110656350e0c336a418cae6b703519 to your computer and use it in GitHub Desktop.

Select an option

Save j4k/41110656350e0c336a418cae6b703519 to your computer and use it in GitHub Desktop.
Apache 2.4 Reverse Proxy to Nginx port 80 => 8080
<VirtualHost *:80>
ServerName something.app
ProxyPreserveHost On
ProxyRequests Off
RequestHeader unset Accept-Encoding
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
SetOutputFilter proxy-html
ProxyHTMLURLMap http://localhost:8080/ /
ProxyHTMLExtended on
<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