On Thu, Jan 8, 2015 at 10:16 PM, Srinivas Kotaru <kotar...@gmail.com> wrote: > Srinivas Kotaru <kotarusv@...> writes: > >> >> I hit similar issue of below post. Any solution yet? >> >> http://serverdown.ttwait.com/que/594669 >> >> > > > Sample > > backend sales_cluster > http-send-name-header Host > balance roundrobin > option httpchk HEAD /pingpong.html HTTP/1.1\r\n > http-check expect ! rstatus ^5 > cookie SERVERID insert indirect nocache > server app1.example.com app1hello-xxxx:80 check cookie server1 > server app2.example.com app1hello-xxxx:80 check cookie server2 > > with above config, HAProxy sending right Host headers > like app1.example.com and app2.example.com > but httpchk not sending any valid host header. I cannot put both > app1.example.com and app2.example.com in same httpchk statement. > >
hi >From the doc, it is said nowhere that this header should be sent during health check. There is a very dirty workaround to do what you want: is to "offload" monitoring into a dedicated backend (one per server). Baptiste