LinuxSir.cn,穿越时空的Linuxsir!

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

请问我为什么没有权限?

[复制链接]
发表于 2007-4-20 21:49:18 | 显示全部楼层 |阅读模式
我想设置用户的网页功能,可总是出现以下画面.是哪里没有设置好吗?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
 楼主| 发表于 2007-4-20 22:00:05 | 显示全部楼层

请问我为什么没有权限?

我想设置用户的网页功能,可总是出现以下画面.是哪里没有设置好吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-4-20 22:03:20 | 显示全部楼层
请问我为什么没有权限?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2007-4-20 22:06:47 | 显示全部楼层
只有结果,没说清环境原因
回复 支持 反对

使用道具 举报

发表于 2007-4-20 22:38:02 | 显示全部楼层
ls -ld ~/public_html
结果?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-4-20 22:57:40 | 显示全部楼层
谢谢!我用的是CENTOS 5
httpd.conf的设置如图

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2007-4-21 00:07:54 | 显示全部楼层
目录权限问题。

chmod a+x ~ && chmod -R a+rX ~/public_html
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-4-21 00:17:53 | 显示全部楼层
drwxr-xr-x 2 xiaobao xiaobao 4096 04-21 06:48 public_html
回复 支持 反对

使用道具 举报

发表于 2007-4-21 04:12:45 | 显示全部楼层
你相应的目录设置是什么?

我的配置是

        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 Indexes
            Options MultiViews SymLinksIfOwnerMatch IncludesNoExec
                <Limit GET POST OPTIONS>
[color="Red"]                        Order allow,deny
                        Allow from all
                </Limit>
            <LimitExcept GET POST OPTIONS>
[color="Red"]                    Order deny,allow
                    Deny from all
            </LimitExcept>
        </Directory>

        # Suexec isn't really required to run cgi-scripts, but it's a really good
        # idea if you have multiple users serving websites...
        <Directory /home/*/public_html/cgi-bin>
                Options ExecCGI
            SetHandler cgi-script
        </Directory>


注意红色那一段
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-4-21 08:55:12 | 显示全部楼层
谢谢!还是不行
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 Indexes
Options MultiViews 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>
回复 支持 反对

使用道具 举报

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

本版积分规则

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