且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

您没有权限访问/在此服务器上。错误code 403

更新时间:2022-10-14 22:52:05

的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).

推荐文章