Skip to content

Instantly share code, notes, and snippets.

@arielvalentin
Last active September 12, 2015 08:31
Show Gist options
  • Save arielvalentin/11337116 to your computer and use it in GitHub Desktop.
Save arielvalentin/11337116 to your computer and use it in GitHub Desktop.
Sample Apache mod_proxy_balancer config for torquebox
<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>
@sivagudiwada
Copy link

Will it take cares of sticky sessions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment