frontend https-in
bind *:443 ssl crt /etc/ssl/certs/haproxy.pem
mode tcp
tcp-request inspect-delay 5s
tcp-request content accept if { req_ssl_hello_type 1 }
default_backend apache-https-backend
backend apache-https-backend
mode tcp
server apache1 192.168.0.2:443 send-proxy-v2 ssl verify none sni str(1,32)
frontend https-in
bind *:443 ssl crt /etc/ssl/certs/haproxy.pem
mode http
default_backend apache-backend
backend apache-backend
mode http
server apache1 192.168.0.2:80 check
<VirtualHost *:443>
ServerName example.com
ServerAlias www.example.com
SSLEngine on
SSLCertificateFile /etc/ssl/certs/example.crt
SSLCertificateKeyFile /etc/ssl/private/example.key
</VirtualHost>
curl -IkH "Host: example.com" https://haproxy-ip