Auto Index is disabled for the directory, access denied : 403 forbidden

While accessing the directories of website (http://webiste_name/directory_name) getting 403 forbidden error with below error logs -

Auto Index is disabled for [/home/cPanel_username/public_html/directory], access denied

Solution -

1. '.htaccess' issue - 
    # Don't show directory listings for URLs which map to a directory.
       Options -Indexes
I've commented the above code in the .htaccess file and all started working fine.

2. Apache web server issue -

Also, if you're running your website on Apache web server then please make sure the '
Indexes default' option is checked
You can check that from WHM >> Service Configuration »Apache Configuration »Global Configuration >> Directory “/” Options >> Indexes default
 
It fixed my issue! 

Was this answer helpful?

 Print this Article

Also Read

How to setup the root login alert notification email?

Its very important to keep a check on your servers and who logs into the server, From security...

Account Creation Status: failed. A database owner with the name <account-name> already exists.

I have deleted the account from the WHM but while recreating it, I was getting below error...

500 No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/ addon_cwaf.cgi): The subprocess reported error number 2 when it ended.

The 500 internal server on WHM Comodo plugin with below Error Message: [2017-03-04 10:55:43...

Install PHP-SSH2 extension in cPanel

PHP SSH2 extension to be loaded into the cPanel server as this module is not available inside...

A DNS entry for 'domain_name' already exists. You must remove this DNS entry from all servers in the DNS cluster to proceed.

While adding addon domain under cPanel, I was getting error as below - A DNS entry for...

Powered by WHMCompleteSolution