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

How to setup SMTP port on Linux server using WHM?

By default SMTP outgoing server is configured for port 25. If you would like to allow exim to...

How to get backup data recursively from the Amazon server?

There may be a situation where you do not have a zip utility on Amazon server so, the backup...

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...

Error: Website not found. If the website was recently renamed or moved please edit the install to save the new location (Files & Tables tab).

I was getting below error when opening installatron for all installs - Error message - Error:...

How to add/remove the trailing slashes in URLs using the .htaccess?

You can use the below code in the .htaccess file depending on the trailing slash required or not...

Powered by WHMCompleteSolution