找回密码
 注册
查看: 925|回复: 0

请教:apache 2.2配置个人用户拒绝访问

[复制链接]
发表于 2006-7-6 10:17:31 | 显示全部楼层 |阅读模式
OS:Linux localhost.localdomain 2.6.16.1 #2 SMP Tue Jun 27 21:08:42 CST 2006 i686 i686 i386 GNU/Linux
apache 版本:2.2
问题:给每个用户配置个人网站时,按照规定
#  UserDir disable
UserDir public_html
<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>
在每个用户下面建public_html,下面建权限全部改成755,但是http://localhost/~用户名时,出现错误,如下:
Forbidden

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

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.0 (Fedora) Server at localhost Port 80
大家帮忙解决一下啊,应该不是很麻烦吧?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-2-12 13:39 , Processed in 0.068284 second(s), 15 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

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