LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1491|回复: 4

为什么APACHE不能显示目录?

[复制链接]
发表于 2006-9-8 12:17:21 | 显示全部楼层 |阅读模式
各位大侠请教。。。。。我想让apache显示目录的为什么 总显示test page页。
我的httpd.conf改动如下:
DocumentRoot "/var/www/html"
<Directory />
    Options Indexes FollowSymLinks
    AllowOverride None
</Directory>
我的/var/www/html目录及子目录都设定了755的权限。
error._long显示错误如下:
[Thu Sep 07 22:39:48 2006] [notice] SELinux policy enabled; httpd running as context root:system_r:unconfined_t:SystemLow-SystemHigh
[Thu Sep 07 22:39:48 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Sep 07 22:39:48 2006] [notice] Digest: generating secret for digest authentication ...
[Thu Sep 07 22:39:48 2006] [notice] Digest: done
[Thu Sep 07 22:39:48 2006] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Thu Sep 07 22:39:48 2006] [notice] Apache/2.2.0 (Fedora) configured -- resuming normal operations
[Thu Sep 07 22:40:00 2006] [error] [client 192.168.1.3] Directory index forbidden by Options directive: /var/www/html/
[Thu Sep 07 22:40:04 2006] [error] [client 192.168.1.3] Directory index forbidden by Options directive: /var/www/html/
发表于 2006-9-8 12:33:25 | 显示全部楼层
Directory index forbidden by Options directive: /var/www/html/
好好看log
回复 支持 反对

使用道具 举报

发表于 2006-9-8 13:01:51 | 显示全部楼层
好象又是selinux的问题
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-8 18:43:55 | 显示全部楼层
Directory index forbidden by Options directive: /var/www/html/
索引被指令选项隐藏
我找不到被哪条指令隐藏啊,我是用Indexs选项了.SELINUX关掉后一样无法显示.
回复 支持 反对

使用道具 举报

发表于 2006-9-9 09:00:10 | 显示全部楼层
一开始没看清问题
测试页删掉
rm -f /etc/httpd/conf.d/welcome.conf  ← 删除测试页

rm -f /var/www/error/noindex.html  ← 删除测试页

具体可看http://www.centospub.com/apache.html
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表