How to Disable Server Wide Directory Browsing?

How to Disable Server Wide Directory Browsing?

Directory listing is disabled by default in most servers for security purposes. You can disable/enable the directory listing option from the Apache configuration. You can improve the server security by disabling this feature globally.

Method 1:  Steps to disable directory listing via WHM panel

1) Login to WHM.

2) Click “Service Configuration”.

Disable directory browsing

 

3) Select Apache configuration.

Disable directory browsing

 

4) Navigate to Global Configuration.

Disable directory browsing

 

5) Untick Indexes option in “Directory ‘/’ Options”.

Disable directory browsing

 

6) Click the Save button.

7) Rebuild Apache conf.

Method 2: Disable Directory Browsing via SSH

1) Login to server via SSH

2) Open httpd.conf

3) Search “Options” and Remove the word ‘Indexes ‘from options

 “Options ExecCGI FollowSymLinks IncludesNOEXEC Indexes SymLinksIfOwnerMatch

Options Includes Indexes FollowSymLinks”

4) Restart Apache

 # service httpd restart

If you need any further help please contact our support department.

  • 0

How to Enable Plaintext Authentication in Dovecot?

How to Enable Plaintext Authentication in Dovecot? Dovecot is an IMAP or POP3 server for...

Install Apache Tomcat using EasyApache4

Install Apache Tomcat using EasyApache4 The Apache Tomcat is an Apache module that provides a...

How to Enable Extended Logging in Exim

How to Enable Extended Logging in Exim The extended Exim logs in cPanel server will help you to...

Maximum number of connections from user+IP exceeded

Maximum number of connections from user+IP exceeded If you are getting an error like ‘ Error –...

How To Set Up Remote Access Key in WHM

How To Set Up Remote Access Key in WHM Remote Access Key is a cPanel feature that allows...