Last active
September 12, 2015 08:31
-
-
Save arielvalentin/11337116 to your computer and use it in GitHub Desktop.
Sample Apache mod_proxy_balancer config for torquebox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:443> | |
#mod_ssl options and Certs ... | |
<Proxy *> | |
AddDefaultCharset Off | |
Order deny,allow | |
Allow from all | |
</Proxy> | |
<Proxy balancer://my-app-balancer> | |
RequestHeader set SSL_CLIENT_S_DN "%{SSL_CLIENT_S_DN}s" | |
RequestHeader set X_FORWARDED_PROTO 'https' | |
BalancerMember http://n1:8080/my-app | |
BalancerMember http://n2:8080/my-app | |
BalancerMember http://n3:8080/my-app | |
</Proxy> | |
ProxyPass /my-app balancer://my-app-balancer | |
ProxyPassReverse /my-app balancer:://my-app-balancer | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Will it take cares of sticky sessions