红宝石+ Passenger - Redmine 部署问题
我正在尝试在我的网络服务器上部署Redmine。 我选择使用乘客来部署 ruby 应用程序。
我已经使用 rake 的演示应用程序进行了测试,但是当我将 VitualHost 指向 redmine 公共文件夹时,我收到此错误:
Directory index forbidden by Options directive: /var/www/redmine/public/
有人可以帮忙吗?
虚拟主机:
<VirtualHost *:80>
ServerName redmine.myserver.com
DocumentRoot /var/www/redmine/public
ErrorLog /var/www/redmine/redmine-error-log
<Directory var/www/redmine/public>
AllowOverride all
Options -MultiViews
</Directory>
</VirtualHost>
I am trying to deploy Redmine on my web server.
I have chose to use passenger to deploy the ruby app.
I have tested with the rake's demo app, but when I pointed my VitualHost to the red mine public folder I got this error:
Directory index forbidden by Options directive: /var/www/redmine/public/
Can anyone help?
Virtual host:
<VirtualHost *:80>
ServerName redmine.myserver.com
DocumentRoot /var/www/redmine/public
ErrorLog /var/www/redmine/redmine-error-log
<Directory var/www/redmine/public>
AllowOverride all
Options -MultiViews
</Directory>
</VirtualHost>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
恕我直言,乘客在您的示例中缺少一些配置。以下是我在生产中的内容:
/var/www/redmine 被创建为符号链接:
您还可以确保在您的 redmine 文件夹(根文件夹)上正确设置了权限。
IMHO Passenger is missing some configuration in your example. Here is what I've in production :
Where /var/www/redmine was created as a symbolic link :
You might also ensure that the rights are properly set on your redmine folder (the root one).
我已经解决了这个问题。
该问题是由 SElinux 引起的。
我必须启用宽容模式。
然后我配置了Redmine应用程序并再次为文件夹设置了正确的权限。
最后我禁用了宽容模式:
I have solved this issue.
The problem was caused by SElinux.
I had to enable the permissive mode.
Then I have configured the Redmine app and set the correct permissions to the folders again.
In the end I have disabled the permissive mode: