How to resolve the error Plesk 403 Forbidden Access is denied?

How to resolve the error Plesk 403 Forbidden Access is denied?

Are you an expert to sort out the problem? It is not a big deal to solve Plesk 403 Forbidden Access is denied. If you couldn’t access the website location and so, you will get the Plesk error 403 Forbidden Access is denied. You will also see the error pop up in /var/www/vhosts/example.com/logs/error_log file as below:

Code:
[autoindex:error] [pid 16372:tid 140200215322334] [client 203.0.112.2:54514] AH01276: Cannot serve directory /var/www/vhosts/example.com/httpdocs/some_folder/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm,index.shtml) found, and server-generated directory index forbidden by Options directive
Either the disablement of the directory browser may be a reason or the directory requested may not have index files. So, it throws the error Plesk 403 Forbidden Access is denied.

Let us add the index to the file first:

Step 1:
Go to the Plesk and check the presence of index fines. Go to Domains and then tap on the domain. Select Apache & Nginx settings for doing an upcoming fix.

Step 2: Move on to the section “Domain” and then select your domain. Now, choose “File Manager” and then select “New”. Start creating the file by clicking on the option “Create File”.

Step 3: Enter any one name from the below option:

Code:
index.shtml
index.xhtml
index.htm
index.php
index.cgi
index.pl
Tap on the button “OK”!
Step 4: You would be done with field creation now! So, select it and start inserting the content.

It’s time to enable directory browsing:

Step 1:
Go to the Plesk and then Domains to choose your domain. Select Apache & Nginx settings and then add the configuration such as:

Code:
Nginx directive field:
location /shared/ {
autoindex on;
}
HTTPS and HTTP fields:
<Location /shared/>
Options +Indexes
</Location>
Step 2: Do apply all the changes.

Note: If you want to disable directory browsing, of course, you can do it now!
Author
kumkumsharma
Views
3,393
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from kumkumsharma

Top