Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
Is the KeepAlive parameter in apache on or off? – becomingwisest May 11 '11 at 7:14
It is off at the moment, however my reading suggests that the KeepAlive parameter refers to sending TCP keepalives to the backend, and seems somewhat seperate to the HTTP 1.1 Keep-Alive. – richo May 11 '11 at 22:58

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

share|improve this answer
I tried it after I read your comment. Didn't fix the issue. Some weird gzip flag did in the end, and then to add insult to injury the top level problem turned out not to be anything to do with apache. – richo May 12 '11 at 6:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.