1
我刚刚在我的Apache服务器上安装了Phusion Passenger来托管Rails 3应用程序。 我虚拟主机文件看起来像这样:Rails和Phusion Passenger - 只能访问公共文件夹
<VirtualHost *:80>
ServerName markusdanek.com
DocumentRoot /var/www/loremipsum/n22/public
<Directory /var/www/loremipsum/n22>
AllowOverride all
Options -Multiviews
Options -Indexes
</Directory>
</VirtualHost>
所以,当我尝试打开loremipsum/N22 - 我只得到到404页(甚至没有的index.html)
那么如何才能到达我的应用程序文件夹(localhost:3000/或localhost:3000/posts)? 还有什么,我必须添加到虚拟主机?
我route.rb:
get "home/index"
root :to => 'home#index'
如果我想在markusdanek.com打开http://markusdanek.com/posts或我的默认主页(应链接到“home”,我的开头)我只会得到: 很抱歉,出错。 – mrks 2013-04-10 18:08:11