LinuxSir.cn,穿越时空的Linuxsir!

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

求助:用户配置~user的问题(APACHE)

[复制链接]
发表于 2005-12-5 09:11:02 | 显示全部楼层 |阅读模式
我在用APACHE2.0配置WEB服务的时候,用户的个人目录总是配置不成功,访问时的提示如下:
Forbidden
You don't have permission to access /~tiredboy on this server.

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


--------------------------------------------------------------------------------

Apache/2.0.52 (Unix) PHP/4.4.0 Server at 10.14.4.250 Port 80

我的APACHE关于个人目录的配置如下:
<Directory /home/*/public_html>
    AllowOverride FileInfo AuthConfig Limit Indexes
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
        Order allow,deny
        Allow from all
</Directory>

上面的这段应该没什么问题吧?后来我以为是用户目录权限的问题,就chmod -R 705 public_html发现不行,索性改成777还是不行,大家指点下小弟吧,谢谢^_^
 楼主| 发表于 2005-12-5 11:49:53 | 显示全部楼层
自己顶顶,免得沉了,急用……
回复 支持 反对

使用道具 举报

发表于 2005-12-8 20:26:14 | 显示全部楼层
<IfModule mod_userdir.c>
    UserDir public_html
#
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
#
    <Directory /home/*/public_html>
        AllowOverride FileInfo AuthConfig Limit
        Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
        <Limit GET POST OPTIONS PROPFIND>
            Order allow,deny
            Allow from all
        </Limit>
        <Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
            Order deny,allow
            Deny from all
        </Limit>
    </Directory>
</IfModule>
回复 支持 反对

使用道具 举报

发表于 2005-12-8 22:51:20 | 显示全部楼层
一般的系统中用户home目录的权限都是750,应该改成755才可以。
回复 支持 反对

使用道具 举报

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

本版积分规则

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