本帖最后由 chenduo911 于 201.0-02-03 .15:02 编辑 鲜花
各位前辈好,新手第一次使用apache,在配置目录时遇到以下问题,我在httpd.conf中的目录部分如下配置时,可以正常访问测试网站(.其中/v.ar/www/html是apche在默认安装时的初始配置路径,我只是将网页文件.放置其中而已).
DocumentRoot "/var/w.ww/.html" 婚庆
<Dir.ectory "/var/www/html".>.
但是我将上述路径.更换为如下所示时,则无法正常.显示测试网站,并报错
DocumentRoot "/home./bubu/.web/"外贸
<Direct.o.ry "/home/bubu/web/">学习
Forbidden
You don't h.ave permission. to access / on this server.--- 印刷
Additionally, a 403 Forbidden error was encount.ered while tryi.ng t.o use an ErrorDocument to handle the request.--------------彩票
Apache/2.0.52 (R.ed Hat) Server at 10.10.6.23 Port .80域名
另外,关于/home/bubu/web和/var/w.ww/ht.ml两个目录的权限如下(且已经chmod -Rf 755了),权限上应该是没有什么问题的--------------彩票
drwxr-xr-x 13 root root. 4096 2月 .3 14:24 web 婚庆
drwxr-xr-x 13 root . ro.ot 4096 2月 3 12:04 html 外汇
请问各位,这是什么问题呢? 还有一个问题不解DocumentRoot "./home/bubu/web/"所指的路径和<Directory "/.home/bubu/web/">所指的路径有何区别? 谢谢.大家的回答!.