[Info] I created the protected directory through Plesk, but I get "403: Directory index forbidden by rule" error when trying to access the directory via my browser.

Refers to:

  • Plesk 12.5 for Linux
  • Plesk 11.0 for Linux

Created:

2016-11-16 13:07:47 UTC

Modified:

2016-12-21 20:00:55 UTC

0

Was this article helpful?


Have more questions?

Submit a request

[Info] I created the protected directory through Plesk, but I get "403: Directory index forbidden by rule" error when trying to access the directory via my browser.

Symptoms

When access a protected directory, I am not asked about the login/password, but get the error

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.