Hi all,
HAProxy 1.7.6
I have a hopefully easy question to answer - I'm trying to do server checks
against 2x IIS nodes which require sending of the destination host name
(virtual hosts) before delivering content. I'm trying to work out how to send
the backend server name with the check request. At the moment the IIS server
isn't seeing the name, rather an IP address as far as I can tell, and
responding with a 404.
This is the config
backend bk_web_ssl
mode http
option httplog
option httpchk GET https://rsh-cp-iis1/Login/Heartbeat
http-check expect rstatus 200
balance roundrobin
stick on src table connections
cookie SERVERID insert nocache indirect
server RSH-CP-IIS1 192.168.176.175:443 cookie 1 check ssl
server RSH-CP-IIS2 192.168.176.176:443 cookie 2 check ssl
I can sort of get it to work on one of the two by including that servers name
in the option httpchk line as seen:
option httpchk GET https://rsh-cp-iis1/Login/Heartbeat
.. but would rather just do option httpchk GET /Login/Heartbeat
..And something like
server RSH-CP-IIS1 RSH-CP-IIS1:443 cookie 1 check ssl
server RSH-CP-IIS2 RSH-CP-IIS2:443 cookie 2 check ssl
Is there some keyword I'm missing somewhere or a better way of doing this?
Thanks
Andy