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! 
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Host1 uid 32210 no header by parse_headers so taking whole header with BODY.PEEK[HEADER]

I was getting below error messages while using imapsync command on the server and emails were not...

How to Specify the exact time to run a backup on cPanel server?

How to Specify the exact time (hour) to run a backup on cPanel server? Solution :- By default,...

This webpage is not found - Cannot export database

While exporting the database zip file from cPanel >> phpMyAdmin as well from SSH, I was...

Error while accessing site with special characters. Update collation for database.

I was getting the error while acccessing the http://yourdomainname/collat.php as below -Error...

How to enable Hot Link Protection in cPanel?

To avoid other sites to use your website's bandwidth, you can enable the hot link protection....

Powered by WHMCompleteSolution