我使用 apache2.2 mod_proxy_balancer + mongrel + rails2.3 出现以下错误。“代理:从返回的远程服务器读取错误”
我将此设置为我的 httpd.conf
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
怎么了?
我使用 apache2.2 mod_proxy_balancer + mongrel + rails2.3 出现以下错误。“代理:从返回的远程服务器读取错误”
我将此设置为我的 httpd.conf
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
怎么了?
问题是你不应该再使用 apache + proxy + mongrel 了。每个人,包括像 Twitter 和 37Signals 这样的大玩家都已经转向Passenger (mod_rails)。
乘客比一群杂种更容易设置和维护。我认为它可能也更快。
看看这篇文章http://rubyforge.org/pipermail/mongrel-users/2007-October/004145.html
并尝试将您的 BalanceMember 条目更改为诸如此类的内容
BalancerMember http://127.0.0.1:9000 max=1 keepalive=on acquire=1 timeout=1