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
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...
How to Change Exim mail server IP address in cPanel server?
HOW TO CHANGE EXIM MAIL SERVER'S IP ADDRESS, FOR SERVER WITH CPANEL?In cPanel/WHM, Exim uses main...
Enable/Disable HTTP Authentication
What is HTTP Authentication ?HTTP provides a general framework for access control and...
cPanel addon domain creation: ‘The domain already exists in the Apache configuration.’
We might get an error when adding an addon or parked domain via cPanel. The domain name never...