Haproxy Site With SSL

To handle SSL/HTTPS traffic on haproxy, use following config in your /etc/haproxy/haproxy.cfg file.

domain.pem

SSL certificate of your domain in PEM format. This is done by using combining your SSL cert, private key and ca bundle.

If you have more sites with SSL, you can specify SSl certs like

BACKEND_SERVER_IP

This is IP of your back end server.

Restart Haproxy with