Proxying requests with Connection: Keep-Alive

apache-2.2mod-proxy

We have an app which sits behind an Apache instance using mod_proxy to pass requests to the correct app server.

Our app correctly returns a Connection: Keep-Alive when queried directly, but mod_proxy is scrubbing the header.

I did some reading and a few suggested that the client needs to set a Proxy-Connection: Keep-Alive to the the proxy about this, but that didn't work either.

Is it possible to have persistent connection proxied by apache?

Best Answer

Given that you say apache has KeepAlive off, I'm guessing its closing the connection. Try turning it on per KeepAlive