部署Rails应用程序时出错

时间:2009-08-07 15:57:43

标签: ruby-on-rails

我尝试部署Rails网站时出现问题

当我启动mongrel并启动我的应用程序并重写并启动Apache

应用已显示

但是当我链接到http://myapp.com/account/login

Not Found

The requested URL /account/login was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

当我尝试默认myapp.com:12007 /

这很正常,我可以链接

问题是什么?

2 个答案:

答案 0 :(得分:0)

仅供参考

问题是@ .htaccess文件 @文件夹public_html /

只需要像这样编辑:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^myapp.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.myapp.com$
RewriteRule ^.*$ "http\:\/\/127\.0\.0\.1\:12007%{REQUEST_URI}" [P,QSA,L]

答案 1 :(得分:-1)

尝试将NameVirtualServer *:12007添加到apache2.conf文件的末尾