frontend front
bind *:80
bind *:443 ssl crt /etc/haproxy/certs/server.pem ca-file /etc/haproxy/certs/id.crt verify required
option tcplog
mode http
default_backend app
backend app
balance roundrobin
cookie SERVERID insert
option ssl-hello-chk
mode http
option httpclose
option forwardfor
option httpchk get /WebApi/help
server app1 1.1.1.1:443 check ssl fall 1 rise 3 verify none cookie webA
server app2 1.1.1.2:443 check ssl fall 1 rise 3 verify none cookie webB
for certain page /login/idcard i need to require client certificate and send it to backend (IIS) which will use it for authentification, i can't find way to ask certificate on certain path and certificate forwarding to backend also not working, previous config was using "mode tcp" which forwards everything to IIS and it was working, but i need to use "acl" to forward request with certain path to another server, but "acl" is not working in https so it should be http