【问题标题】:apache2.2 x mongrel proxy errorapache2.2 x mongrel 代理错误
【发布时间】:2010-12-02 22:26:15
【问题描述】:

我使用 apache2.2 mod_proxy_balancer + mongrel + rails2.3 发生以下错误。 “代理:从远程服务器读取时出错”

我将此设置为我的 httpd.conf

SetEnv force-proxy-request-1.0 1

SetEnv proxy-nokeepalive 1

怎么了?

【问题讨论】:

    标签: ruby-on-rails apache2 mongrel


    【解决方案1】:

    问题是你不应该再使用 apache + proxy + mongrel 了。每个人,包括像 Twitter 和 37Signals 这样的大玩家都已经转向Passenger (mod_rails)。

    Passenger 比一群杂种更容易设置和维护。我认为它可能也更快。

    【讨论】:

      【解决方案2】:

      看看这篇文章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

      【讨论】:

        猜你喜欢
        • 2010-12-01
        • 1970-01-01
        • 2011-03-22
        • 2021-09-08
        • 2011-03-17
        • 1970-01-01
        • 2010-12-02
        • 2015-07-20
        • 2020-07-31
        相关资源
        最近更新 更多