Of course ! A very good idea ! But the better should be to accept multiple http-heck expect :)
2015-02-17 10:25 GMT+01:00 Baptiste <bed...@gmail.com>: > On Tue, Feb 17, 2015 at 10:12 AM, Sébastien ROHAUT > <sebastien.rohaut....@gmail.com> wrote: > > Hi, > > > > Thank you for your answer. I changed my configuration like this : > > > > tcp-check send GET\ /mycheck\ HTTP/1.1\r\nHost:\ myhost\r\nConnection:\ > > close\r\n > > tcp-check send \r\n > > tcp-check expect string HTTP/1.1\ 200\ OK > > tcp-check expect ! string "healthStatus":"Unhealthy" > > > > And it works very well. Even in SSL. You now have my eternal gratitude :) > > > > Sébastien Rohaut > > > Sébastien, > > Thanks for your feedback! > If you don't mind, I'm going to post a blog article on > blog.haproxy.com with this tip :) > > Baptiste >