Skip to content

Instantly share code, notes, and snippets.

@skarllot
Created October 30, 2013 19:50
Show Gist options
  • Save skarllot/7239046 to your computer and use it in GitHub Desktop.
Save skarllot/7239046 to your computer and use it in GitHub Desktop.
Apache configuration to proxy requests to Glassfish server.
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName www.example.com
ServerAlias example.com
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://web.example.com:8080/
ProxyPassReverse / http://web.example.com:8080/
ProxyPreserveHost On
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment