LinuxSir.cn,穿越时空的Linuxsir!

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

Apache的UserDir一问

[复制链接]
发表于 2007-1-25 23:51:13 | 显示全部楼层 |阅读模式
UserDir public_html

在/home/cheyo/public_html放置好了静态页面

已经给/home/cheyo 711权限了,给/home/cheyo/public_html 755权限了

为什么访问http://192.168.1.10/~cheyo/index.html还是403 Forbidden?

给点建议?



<IfModule mod_userdir.c>
    #
    # UserDir is disabled by default since it can confirm the presence
    # of a username on the system (depending on home directory
    # permissions).
    #
    #UserDir disable

    #
    # To enable requests to /~user/ to serve the user's public_html
    # directory, remove the "UserDir disable" line above, and uncomment
    # the following line instead:
    #
    UserDir public_html

</IfModule>

<Directory /home/*/public_html>
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    <Limit GET POST OPTIONS>
        Order allow,deny
        Allow from all
    </Limit>
    <LimitExcept GET POST OPTIONS>
        Order deny,allow
        Deny from all
    </LimitExcept>
</Directory>
 楼主| 发表于 2007-1-26 00:34:53 | 显示全部楼层
已经解决。

原来是SELinux(Security Enhanced Linux)在作怪。

http://www.syanix.com/blog/article.asp?id=78
回复 支持 反对

使用道具 举报

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

本版积分规则

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