您没有权限访问/在此服务器上。错误code 403 [英] You don't have permission to access / on this server. Error code 403

查看:1628
本文介绍了您没有权限访问/在此服务器上。错误code 403的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经阅读了重复。我有rel="nofollow">我的网站在

的.htaccess

 #-FrontPage-
#order否认,允许


<限制GET POST>
为了否认,允许
所有否认
允许所有
< /限制>
<限制PUT DELETE>

要求所有批准
所有否认
< /限制>
AuthName指令9amllc.com
的AuthUserFile /home/p261i9kj/public_html/_vti_pvt/service.pwd
目录AuthGroupFile /home/p261i9kj/public_html/_vti_pvt/service.grp
 

的http.conf

 <目录/>
#Options的FollowSymLinks
选择指标包括了FollowSymLinks ExecCGI
设置AllowOverride无
所有允许
< /目录>

<目录/家/>
 #Options的FollowSymLinks
 选择指标包括了FollowSymLinks ExecCGI
 设置AllowOverride无
 所有允许
< /目录>
 

解决方案

的AllowOverride无在这两个目录。他们需要为所有项AuthConfig,限制

您可以为验证模块的文档中看到他们需要的项AuthConfig 覆盖和的 mod_authz(允许/拒绝/订单)要求限制覆盖。

此外,你有这样的:

 <限制GET POST>
为了否认,允许
所有否认
允许所有
< /限制>
 

这似乎无论从所有拒绝和允许从所有,您只需要一个或另一个(我假设第二)。

I have read the duplicates. I am having the above error on my website. I have tried to change the .htaccess file, the http.conf file and the CHMOD but nothing helped. Please guide me what should I do. Thanks.

.htaccess

# -FrontPage-
#order deny,allow


<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>

Require all granted
deny from all
</Limit>
AuthName 9amllc.com
AuthUserFile /home/p261i9kj/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/p261i9kj/public_html/_vti_pvt/service.grp

http.conf

<Directory "/">
#Options FollowSymLinks
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride None
Allow from all
</Directory>

<Directory "/home/">
 #Options FollowSymLinks
 Options Indexes FollowSymLinks Includes ExecCGI
 AllowOverride None
 Allow from all
</Directory>

解决方案

You have AllowOverride None in both those directories. They need to be either All or AuthConfig,Limit.

You can see in the documentation for the Auth modules that they require the AuthConfig override, and the mod_authz (allow/deny/order) requires the Limit override.

Additionally, you have this:

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>

which seems to both deny from all and allow from all, you only want one or the other (I'm assuming the second).

这篇关于您没有权限访问/在此服务器上。错误code 403的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆