Protected directory shows 403: Directory index forbidden by rule

Created:

2016-11-16 13:07:47 UTC

Modified:

2017-06-23 10:39:32 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Protected directory shows 403: Directory index forbidden by rule

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 11.0 for Linux

Symptoms

When access a protected directory, login/password is not asked, only error is shown:

403 Directory index forbidden

Also, this error may occur if you access not protected but the regular directory.

Cause

Directory index forbidden error occurs if there is no index file in the directory and directory indexing is disabled in Apache configuration.

Resolution

To avoid this error the index file should be put into the directory. Index file's extensions are defined in httpd.conf by means of DirectoryIndex directive, for example:

 DirectoryIndex at_domains_index.html index.html index.html.var index.shtml index.php index.htm

Or enable directory indexing with Options +Indexes directive for the domain by means of vhost.conf or for the whole server in httpd.conf

Restart Apache if you changed any configuration file.

Check apache.org/#directoryindex and apache.org/#options for more details.

Have more questions? Submit a request
Please sign in to leave a comment.