Skip to content

Instantly share code, notes, and snippets.

@shazinahmed
Last active December 19, 2015 03:59
Show Gist options
  • Save shazinahmed/5894316 to your computer and use it in GitHub Desktop.
Save shazinahmed/5894316 to your computer and use it in GitHub Desktop.
Apache mod_proxy with Spring Security
<VirtualHost *:80>
ServerName public.server.name
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /myApp/j_spring_security_check http://localhost:8080/myApp/j_spring_security_check
ProxyPassReverse /myApp/j_spring_security_check http://localhost:8080/myApp/j_spring_security_check
ProxyPass /myApp http://localhost:8080/myApp
ProxyPassReverse /myApp http://localhost:8080/myApp
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment