We're running a web service and hitting 502 Bad Gateway randomly. The 502 is reported by reverse proxy (Apache 2.4.x) while talking to backend server (Apache 2.4.x). The problem randomly re-appears around once per 100,000 served requests so it's really hard to reproduce. I see that Apache allows configuring ProxyBadHeader
directive where possible options are IsError|Ignore|StartBody
. I have problems finding the exact cause of the error. I know that if I set ProxyBadHeader
to StartBody
the partial output would end up to the browser. I really would not want to emit the data to unknown end user so I need something better. Is it possible to log all the partially received data from the bad gateway?
The problem seems similar to Apache bug 37770 but it should be fixed in the version we're running.