我有我的应用程序下面的000默认文件的Apache
<VirtualHost *:80> ServerName www.yourhost.com DocumentRoot /somewhere/public <Directory /somewhere/public> AllowOverride all Options -MultiViews </Directory> </VirtualHost>
我已经重新启动apache,现在我得到You don't have permission to access / on this server. 当浏览到它。
有谁知道我的应用程序有什么权限,或者如果我必须将应用程序文件夹添加到轮组或类似的东西?
尝试Allow from all添加Allow from all <Directory>节。 另外,不要编辑000-default; 在sites-{available,enabled}使用您自己的vhostconfiguration文件 – sites-{available,enabled} 。
为了能够浏览目录结构,您需要将Indexes添加到Options以便读取
Options Indexes -MultiViews
并回答你的评论,是的目录结构应chown'ed您的networking服务器用户。 但是要小心地分配目录上的愚蠢的权限集(例如777)。 如果您的networking服务器用户(或群组)设置正确,则不会有这种情况。
对于钢轨工作,你将需要更多。 在您的发行版中查找mod_passenger。 这是Ruby的连接模块。 没有这个,你肯定只能浏览代码,而不是应用程序。