技术解析

搞了两天没搞定,为什么根目录索引不能启用目录浏览呢,而二级目录就能目录浏览。
0
2021-07-26 02:59:18
idczone
根目录访问显示

Forbidden You don't have permission to access / on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

而二级目录以上目录可以正常索引

索引方式

Options Indexes FollowSymLinks

errer.log信息

[Fri Feb 08 00:30:17 2013] [error] [client 222.93.25.158] Directory index forbidden by Options directive: /hd2/www/xxx.net/code/
[Fri Feb 08 00:30:17 2013] [error] [client 222.93.25.158] File does not exist: /hd2/www/xxx.net/code/error

inux centos apache 配置
首先检查一下www这个目录的权限

www权限 没问题肯定
因为我在做过子目录 也报这样错误。

搞定了 apache 配置文件不止一个httpd.conf
还有ssl.conf welcome.conf

数据地带为您的网站提供全球顶级IDC资源
在线咨询
专属客服