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 reset SSH port back to default port 22?

In some situations most of us may come across a problem that we are able to log into the WHM but...

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

How to enable Open SSL on WHM?

Before enabling open SSL, you can check whether it is already enabled on your server. Please fire...

How to install mod_pagespeed on WHM?

'mod_pagespeed' is module of Apache which is nothing but plugin which is used for compressing the...

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