LinuxSir.cn,穿越时空的Linuxsir!

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

一个apache的配置问题!

[复制链接]
发表于 2003-6-26 15:05:12 | 显示全部楼层 |阅读模式
我能够通过http://localhost访问默认的主页了.
现在想通过http://localhost/~username来访问用户的主页.
改了一下http.conf文件,在UserDir disable这句前面加了个#号.
删除了UserDir public_html前面的#号.在/home/username的目录下建立
了public_html目录.并建立了index.html文件.
http://localhost/~username/index ... 提示信息如下:

Forbidden


You don't have permission to access /~huli/huli.html on this server.


Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.0.40 Server at localhost Port 80
发表于 2003-6-26 20:50:27 | 显示全部楼层
You don't have permission to access /~huli/huli.html on this server.

很明显的属性错误。没有nobady的访问权利。执行:
chmod -R 755 /home/username
发表于 2003-6-26 21:53:12 | 显示全部楼层
不,应该是
find /home/username/public_html -t d |xarg chmod 755
find /home/username/public_html -t f |xarg chmod 644
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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