How to disable the listing in a non-cPanel CentOS server?
1. Locate your httpd.conf file. Normally it is located at /usr/local/apache/conf or /etc/httpd/conf/httpd.conf
2. Open the httpd.conf file in text editor and search for the following line
# Options Includes Indexes FollowSymLinks MultiViews
3.Remove the word Indexes.
# Options Includes FollowSymLinks MultiViews
4. Save modified httpd.conf and restart Apache
# service httpd restart
You have successfully disabled the directory listing.
Most Popular Articles
System Requirements
Most current web servers with PHP & MySQL installed will be capable of running WHMCS. The...
Common logs file paths
Log files are helpful in troubleshooting issues and in monitoring the performance of cPanel...
Disable ModSecurity in cPanel
What is ModSecurity?Mod_security is an apache module that helps to protect your website from...
How to disable directory listing in cpanel?
Disable directory listing in cpanelIndex Manger in cPanelThe Index Manager allows you to...
Setting a cron job
What is a Cron Job? A cron is a time-based scheduler that uses cron to schedule jobs...