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


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

  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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