LinuxSir.cn,穿越时空的Linuxsir!

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

请教apache和mod_userdir配置的问题

[复制链接]
发表于 2008-7-30 20:36:22 | 显示全部楼层 |阅读模式
有一台服务器,work账号启动了apache 2.2.8。
想给这台服务器上面的其它用户开启个人主页的服务,从网上查了相关的资料说可以采用 LoadModule mod_userdir.so来实现。apache编译的时候mod_userdir是built-in,在httpd.conf里面添加了
Include conf/extra/httpd-userdir.conf

但是访问的时候
http://www.example.com/~user

出现了403没有权限的错误。

系统是
Red Hat Enterprise Linux AS release 4 (Nahant Update 3)

看了看/etc/selinux/config,处于disable的状态。


这是什么问题呢?如何设置才可以使用userdir呢?
是不是必须用root来启动apache呢?

谢谢。
发表于 2008-7-30 23:36:20 | 显示全部楼层
对用户目录需要又o+r的权限。
回复 支持 反对

使用道具 举报

发表于 2009-5-19 17:50:18 | 显示全部楼层

http mod userdir config

how to fix user forbidden issue
1. make sure you really make a dir named "public_htmp" in the ~user/ directory.
2. make sure the user is not listed in the "UserDir Disable" list.
3. make sure the public_html has 755 value.
回复 支持 反对

使用道具 举报

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

本版积分规则

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