On Fri, May 4, 2018 at 5:01 PM, Lukas Tribus <lu...@ltri.eu> wrote: > Hello Igor, Sen, > > > On 4 May 2018 at 08:46, Igor Cicimov <ig...@encompasscorporation.com> > wrote: > > Have you tried: > > > > option httpchk GET /env HTTP/1.1\r\nHost:\ %[req.hdr(Host)] > > When you are health checking, you don't have a Host header as you > don't have a frontend connection associated to it. > > > I proposed to offload healthcheck to dedicated backends and track them > from the main backend here: > > https://discourse.haproxy.org/t/helathcheck-on-multiple- > backends-with-virtual-hostnames/2413/12 > > > Just not quite clear about how host headers from actual clients should > look like ... > > > cheers, > lukas >
Of course, nice and elegant solution. Didn't think of 'track' and now that you mentioned it I'm sure I'm using it myself somewhere on couple of proxies but can't even remember where :-/ Igor