Try setting option httpclose after srvtimeout line.
If you do not, haproxy uses the keepalive setting of the destination server. After you go to the main site, the connection opens and remains open, and on the next request, haproxy goes . Oh, it's not so nice: I have an open connection. Let's just use it , although it shouldn't. Using the httpclose parameter, it always closes the connection, ensuring that every new request uses the correct connection.
I lost 3 hours of my life finding out.
source share