我正在尝试在 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
最佳答案
看起来您需要在 Apache 的配置文件中设置 TimeOut
指令。超时以秒为单位表示。例如,以下将超时设置为 5 分钟:
TimeOut 300
关于Ruby 应用程序超时(使用 Phusion Passenger 部署在 Amazon EC2 上),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10721858/