gpt4 book ai didi

apache + redmine 403 - 权限良好

转载 作者:行者123 更新时间:2023-12-02 07:14:42 27 4
gpt4 key购买 nike

我对此进行了很多搜索,但解决方案并没有多大帮助。我尝试在我的 FreeBSD 上将 redmine 升级到 2.6.5,但出现 403 错误。

apache错误日志:

[autoindex:error] AH01276: Cannot serve directory /usr/local/www/redmine/public/: No matching DirectoryIndex (none) found, and server-generated directory index forbidden by Options directive

我的 httpd 配置:

<VirtualHost example.com:80>
DocumentRoot "/usr/local/www/redmine/public"
ServerName example.com

FastCgiServer /usr/local/www/redmine/public/dispatch.fcgi -idle-timeout 120 -initial-env RAILS_ENV=production -initial-env PATH=/usr/local/bin -processes 2

<Directory "/usr/local/www/redmine/public">
AddHandler fastcgi-script fcgi
Order allow,deny
Allow from all
AllowOverride all
Options +FollowSymLinks +ExecCGI
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.fcgi
</Directory>
ErrorLog /logs/error.log
</Virtualhost>

我不得不说:如果我在选项中添加+索引,我会在浏览器中看到文件,所以我想前提条件很好。任何人都可以给我任何提示吗?预先感谢 4 您的帮助

最佳答案

在我的情况下,问题是由 apache 模块 ModAutoIndex 中的错误引起的。禁用该模块就可以了。

参见https://serverfault.com/a/731859

Disabling the module auto index (which is the cause of the wrong behaviour, will prevent the error.

#LoadModule autoindex_module modules/mod_autoindex.so

Phusion will address the issue in the realase of Passenger 5.0.22 before Apache 2.5.0 will be released.

关于apache + redmine 403 - 权限良好,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33222480/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com