Articles in this section

Cannot access a website directory in Plesk: 403 Forbidden

Plesk for Linux kb: technical ABT: Group B

Applicable to:

  • Plesk for Linux

Symptoms

  • Cannot access a specific location of website, e.g. http://example.com/some_folder, the following error occurs:

    CONFIG_TEXT: Server Error
    403
    Forbidden

  • If CloudLinux operating system is used, its test page is shown:

    CONFIG_TEXT: CloudLinux Test Page
    This page is used to test the proper operation of the Apache HTTP server after it has been installed. If you can read this page, it means that the Apache HTTP server installed at this site is working properly.

  • The following error appears in the /var/www/vhosts/example.com/logs/error_log file:

    CONFIG_TEXT: [autoindex:error] [pid 16314:tid 140300215322368] [client 203.0.113.2:55714] 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

Cause

The requested directory does not contain index files or directory browsing is not enabled.

Resolution

Apply one of the following solutions (depending on the desired goal):

1. Add a missing index file to the directory
  1. Log into Plesk.
  2. Check what index files defined in Domains > example.com > Apache & nginx Settings:
    23.PNG
     
  3. Go to Domains > example.com > File Manager.
  4. (Optional) Navigate to the required folder, e.g. some_folder.
  5. Click the New > Create File button.
  6. Specify one of the following names according to file name from step 2:

    • index.html

    • index.cgi

    • index.pl

    • index.php

    • index.xhtml

    • index.htm

    • index.shtml

    and press the OK button.

  7. Click on the created file and insert the required content. 

    The video below demonstrates an example of the process 

 

Was this article helpful?

Comments

2 comments
Date Votes
  • Hello.

    Is it a real problem?

    0
  • bei mir hilft es nicht!!!

    0

Please sign in to leave a comment.