根目录访问显示
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.
而二级目录以上目录可以正常索引
索引方式
<Directory "/hd2/www/"> Options Indexes FollowSymLinks </Directory>
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 配置
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.
而二级目录以上目录可以正常索引
索引方式
<Directory "/hd2/www/"> Options Indexes FollowSymLinks </Directory>
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 配置