Configure HA Proxy for Load Balancing with SSL Termination and SSL Pass-through

HAProxy

 

http://virtuallyhyper.com/2013/05/configure-haproxy-to-load-balance-sites-with-ssl/

 

frontend unsecured *:80 
mode http
redirect prefix
https://foo.bar.com
#--------------------------------------------------------------------- #
frontend secured
#---------------------------------------------------------------------
 frontend secured *:443
mode tcp
default_backend app
 #--------------------------------------------------------------------- # 
round robin balancing between the various backends
#--------------------------------------------------------------------- #
backend app 
mode tcp
balance roundrobin
server app1 127.0.0.1:5001 check
server app2 127.0.0.1:5002 check
server app3 127.0.0.1:5003 check
server app4 127.0.0.1:5004 check

 

http://stackoverflow.com/questions/13227544/haproxy-redirecting-http-to-https-ssl

 

Leave a Reply