proxy_balancer error
After several hours of normal work in production, our web-server starts throwing the following error:
Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /any. Reason: Error reading from remote server
mod_proxy sometimes reject requests to Mongrel. This comes from two known Apache bugs #39499 and #37770.
To resolve the problem and as workaround for it add the lines below to your Apache VirtualHost section.
#Fix for Apache bug 39499
<VirtualHost *>
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
</VirtualHost>