user379888
user379888

Reputation:

You don't have permission to access / on this server. Error code 403

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>

Upvotes: 0

Views: 1034

Answers (1)

Jon Lin
Jon Lin

Reputation: 143926

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

Upvotes: 1

Related Questions