- 论坛徽章:
- 0
|
本帖最后由 chenduo911 于 2010-02-03 14:54 编辑
各位前辈好,新手第一次使用apache,在配置目录时遇到以下问题,我在httpd.conf中的目录部分如下配置时,可以正常访问测试网站(其中/var/www/html是apche在默认安装时的初始配置路径,我只是将网页文件放置其中而已)
DocumentRoot "/var/www/html"
<Directory "/var/www/html">
但是我将上述路径更换为如下所示时,则无法正常显示测试网站,并报错
DocumentRoot "/home/bubu/web/"
<Directory "/home/bubu/web/">
Forbidden
You don't have permission to access / on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.0.52 (Red Hat) Server at 10.10.6.23 Port 80
另外,关于/home/bubu/web和/var/www/html两个目录的权限如下(且已经chmod -Rf 755了),权限上应该是没有什么问题的
drwxr-xr-x 13 root root 4096 2月 3 14:24 web
drwxr-xr-x 13 root root 4096 2月 3 12:04 html
请问各位,这是什么问题呢? 还有一个问题不解DocumentRoot "/home/bubu/web/"所指的路径和<Directory "/home/bubu/web/">所指的路径有何区别? 谢谢大家的回答! |
|