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

I'm running apache2 with mod_proxy to forward certain requests to an nginx server running on the same machine. Occasioanaly the Apache server will stop responding all together until a restart. Checking the httpd.log shows the following lines happening every second or 2:

The timeout specified has expired: proxy: error reading status line from remote server localhost proxy: Error reading from remote server returned by /

I've searched google for an answer but found nothing definitive other than people mentioning mod_proxy as the cause.

Does anyone have a clue where to look next or even how to solve it?

Thanks, J

share|improve this question
up vote 1 down vote accepted

Do you have KeepAlive enabled in your ProxyPass directive? I've seen this before, and in nearly every case, KeepAlive was the culprit.

share|improve this answer
I did have KeepAlive set so it was more than likely the culprit. I decided to remove Apache from the equation all together and open up the nginx port so stop it happening again. Thanks – JWood May 23 '11 at 9:25
Actually, you would actually want to have KeepAlive enabled -- you just need to ensure that the timeouts in Apache and Nginx match. – atbell May 24 '11 at 5:41

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.