Skip to content

Instantly share code, notes, and snippets.

@shawnsi
Created December 2, 2014 22:51
Show Gist options
  • Save shawnsi/0ea9127d4f9be6bf2fcc to your computer and use it in GitHub Desktop.
Save shawnsi/0ea9127d4f9be6bf2fcc to your computer and use it in GitHub Desktop.
Apache Proxy for Spring Security
NameVirtualHost IP:80
<VirtualHost IP:80>
ServerName local.bhg.com
RequestHeader set X-Forwarded-Proto https
RewriteRule ^(/.*)?$ http://localhost:9094$1 [P]
ProxyPassReverse / http://localhost:9094/
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment