我在AWS上创建了一个bitnami实例,并将我的rails应用程序上传到- /home/bitnami/ my _app
我在我的虚拟主机中添加了以下内容-
<VirtualHost *:80>
ServerAdmin test@test.com
DocumentRoot "/home/bitnami/my_app/public"
<Directory /home/bitnami/my_app/public>
Allow from all
Options -MultiViews
</Directory>
RailsEnv production
ServerName www.my_app.com
ErrorLog "logs/my_app.com-error_log"
CustomLog "logs/my_app.com-access_log" common
</VirtualHost>在应用程序routes.rb中,我有-
root :to => "pages#home“
我可以访问应用程序中的所有路由,也就是说,如果我转到www.my_app.com/signin,它就可以工作。
然而,试图访问根目录-即www.my_app.com给出了404错误。
我遗漏了什么?提前感谢您的帮助。
发布于 2013-05-03 16:44:18
您是否在Apache配置中启用了Passenger?下面的指南可能会有所帮助:
http://wiki.bitnami.com/Components/Phusion_Passenger
https://stackoverflow.com/questions/16346003
复制相似问题