Ruby应用程序超时(与Phusion Passenger一起部署在Amazon EC2上)
我试图在AmazonEC2(Ubuntu+Apache+Passenger)上部署SequenceServer,但它“挂起”: “helloworld”应用程序也会发生同样的情况: 它在我的物理linux服务器(不是EC2)上运行良好 它不会将任何内容记录到apache日志文件中,因此我不确定如何对其进行故障排除。非常感谢您对如何修复或排除问题的任何帮助 apacheconf:Ruby应用程序超时(与Phusion Passenger一起部署在Amazon EC2上),ruby,amazon-ec2,passenger,Ruby,Amazon Ec2,Passenger,我试图在AmazonEC2(Ubuntu+Apache+Passenger)上部署SequenceServer,但它“挂起”: “helloworld”应用程序也会发生同样的情况: 它在我的物理linux服务器(不是EC2)上运行良好 它不会将任何内容记录到apache日志文件中,因此我不确定如何对其进行故障排除。非常感谢您对如何修复或排除问题的任何帮助 apacheconf: <VirtualHost *:80> DocumentRoot /var/www <
<VirtualHost *:80>
DocumentRoot /var/www
<Directory /var/www>
Allow from all
</Directory>
RackBaseURI /sequenceserver
RackBaseURI /sequneceserver1
<Directory /var/www/sequenceserver>
Options -MultiViews
</Directory>
</VirtualHost>
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