【发布时间】:2017-05-12 00:08:55
【问题描述】:
- Oracle Linux 7.3(RHEL 衍生产品)
- Apache 2.4.6
我正在 /srv/www 中为 yum、脚本和 kickstart 文件设置一个存储库,通过 httpd 提供服务。我想要一个自动索引,所以我没有任何 index.html。而且,这是该内部服务器唯一会做的事情。所以,httpd.conf:
DocumentRoot "/srv/www"
<Directory "/srv/www">
AllowOverride all
Options Indexes FollowSymLinks
Require all granted
</Directory>
但是,我仍然收到错误消息:
[autoindex:error] [pid 12345] [client <IP address>:<port>] AH01276: Cannot serve directory /srv/www: No matching DirectoryIndex (index.html) found, and server-generated directory index forbidden by Options directive.
除了Options 指令允许自动索引!我试过Options All。我试过Options +Indexes +FollowSymLinks。我查看了 7 或 8 个 Google 点击。没有任何效果。
设置LogLevel debug 不会增加消息传递。
我错过了什么?
【问题讨论】:
-
您的 /srv/www 目录中是否有(有些隐藏的).htaccess ?
-
不,它只是 RPM 包、脚本和 kickstart。问题原来是
welcome.conf。
标签: apache httpd.conf