Ok, I managed to change my setup to use HTTPS instead, here's my config:
global
maxconn 1000
stats socket /tmp/haproxy.socket level admin
uid 80
gid 80
nbproc 1
chroot /tmp/haproxy_chroot
daemon
listen HAProxyLocalStats
bind 127.0.0.1:2200 name localstats
mode http
stats enable
stats refresh 10
stats admin if TRUE
stats uri /haproxy/haproxy_stats.php?haproxystats=1
timeout client 5000
timeout connect 5000
timeout server 5000
frontend SharedFront
bind 58.182.70.241:443 name 58.182.70.241:443
mode tcp
log global
timeout client 30000
tcp-request inspect-delay 5s
acl ACL1 req.ssl_sni -i aaa.ddns.net
acl ACL2 req.ssl_sni -i bbb.ddns.net
tcp-request content accept if { req.ssl_hello_type 1 }
use_backend aaa_https_ipvANY if ACL1
use_backend bbb_https_ipvANY if ACL2
backend aaa_https_ipvANY
mode tcp
log global
timeout connect 30000
timeout server 30000
retries 3
option httpchk GET /
server aaa 192.168.1.23:443 check-ssl check inter 1000 verify none
backend bbb_https_ipvANY
mode tcp
log global
timeout connect 30000
timeout server 30000
retries 3
option httpchk GET /
server bbb 192.168.1.24:443 check-ssl check inter 1000 verify none
Can someone help check if there will be potential issues?