【问题标题】:Ruby app times out (deployed on Amazon EC2 with Phusion Passenger)Ruby 应用程序超时(使用 Phusion Passenger 部署在 Amazon EC2 上)
【发布时间】:2012-05-30 02:44:44
【问题描述】:

我正在尝试在 Amazon EC2(Ubuntu + Apache + Passenger)上部署 SequenceServer,但它“挂起”:http://ncwebguru.com/sequenceserver

“helloworld”应用也会发生同样的事情:http://ncwebguru.com/sequenceserver1

它在我的物理 linux 服务器(不是 EC2)上运行良好。

它不会将任何内容记录到 apache 日志文件中,因此我不确定如何对其进行故障排除。非常感谢任何有关如何解决或解决问题的帮助。

Apache 配置:

<VirtualHost *:80>
    DocumentRoot /var/www
    <Directory /var/www>
        Allow from all
    </Directory>

    RackBaseURI /sequenceserver
    RackBaseURI /sequneceserver1

    <Directory /var/www/sequenceserver>
        Options -MultiViews
    </Directory>
</VirtualHost>

/var/www 目录:

sequenceserver # sym link to /path/to/actual/sequenceserver/public
sequenceserver1 # sym link to /path/to/helloworld/public

/path/to/helloworld 目录:

tmp/ # empty
public/ # empty
config.ru # helloworld ruby rack app

config.ru

app = proc do |env|
    return [200, { "Content-Type" => "text/html" }, "hello world"]
end
run app

【问题讨论】:

    标签: ruby amazon-ec2 passenger


    【解决方案1】:

    看起来您需要在 Apache 的配置文件中设置 TimeOut 指令。超时以秒为单位。例如,以下将超时设置为 5 分钟:

    TimeOut 300
    

    【讨论】:

      猜你喜欢
      • 2015-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-06-01
      • 1970-01-01
      • 2012-02-02
      • 2020-04-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多