Haproxy documentation

failover configuration examples

not so pratical guide

SSL with HAProxy

from this guide https://serversforhackers.com/using-ssl-certificates-with-haproxy you can have two types of ssl for haproxy

  1. SSL Pass-Through , your haproxy is only at the tcp level and forward the connection to the destination , it is easy to configure but you don't have full control of the http connection because for you remain encrypted
  2. SSL Termination, your haproxy is a https level so it terminates the connections and create a new one for the destination , you have full control in this way

my working example with Pass-Through

cat /etc/haproxy/haproxy.cfg
    timeout connect 5000ms
    timeout client 5000ms
    timeout server 5000ms

frontend http-in
    bind *:443
    mode tcp
    default_backend my-backend

backend my-backend
    mode tcp
    option ssl-hello-chk
    server pvs_01 mymachine.mydomain.com:443
Salvo diversa indicazione, il contenuto di questa pagina è sotto licenza Creative Commons Attribution-ShareAlike 3.0 License