+ -
当前位置:首页 → 问答吧 → apache的配置问题

apache的配置问题

时间:2010-07-21

来源:互联网

我的系统是red hat9 ,apache 2.2.15,php 4.4.2,web主目录是/var/www/html,主目录没有问题,下面的页面可以打开,可是我在下面建的子目录里的内容不能访问,提示:
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.

Error 403
192.168.1.254
Apache/2.0.46 (Red Hat)

我的子目录也是755,可是就是不能访问,我也没有.htaccess文件。

后来我对子目录设权限如下,也不行:
<Directory "/var/www/html/mrtg">;
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>;

请高手指点。
我的/var/www/html /mrtg权限是755,内容的权限是644,我把内容拷入上一级目录就可以访问。

作者: glose   发布时间: 2010-07-21

这个我遇到过,好像是Options Indexes FollowSymLinks MultiViews的问题,或者直接修改首页为index.html或者index.php,在IE里访问就可以了。具体忘记了。

作者: wlacf   发布时间: 2010-07-28

热门下载

更多