Apache错误-选项指令禁止使用服务器生成的目录索引

时间:2018-10-09 15:50:33

标签: apache centos rhel

当我进入网站的IP地址时,我一直收到500 internal error。我尚未为其设置域名。在/var/log/httpd/error_log的apache错误日志中检查错误后,我发现了以下内容:

[Tue Oct 09 13:26:09.453886 2018] [autoindex:error] [pid 894] [client masked:22506] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.php,index.html,index.html.var) found, and server-generated directory index forbidden by Options directive
[Tue Oct 09 13:26:09.979837 2018] [autoindex:error] [pid 901] [client masked:22482] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.php,index.html,index.html.var) found, and server-generated directory index forbidden by Options directive
[Tue Oct 09 13:27:16.233440 2018] [core:error] [pid 895] [client masked:22299] Script timed out before returning headers: wsgi.py
[Tue Oct 09 13:27:20.233453 2018] [core:error] [pid 893] [client masked:22360] Script timed out before returning headers: wsgi.py

我在httpd-2.4上有rhel 7.5。我从httpd-2.2升级到了较新的版本,并且不得不更改配置和虚拟主机以使其与较新的2.4语法兼容。

以下是相关文件,请检查我的httpd.conf中的以下块是否有效(第309行):

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Require all denied
</Directory>

httpd.conf (pastebin link) vhosts.conf (pastebin link)

0 个答案:

没有答案