GICT knowledge base
How to Disable Server Wide Directory Browsing?
Published
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”.
3) Select Apache configuration.
4) Navigate to Global Configuration.
5) Untick Indexes option in “Directory ‘/’ Options”.
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.
Related guides
How to Find Services That Need a Restart After Updates with needrestart
Find services using outdated libraries with needrestart on Ubuntu. Read restart reports, review automatic restart policy and plan maintenance safely.
Firewall and SecurityHow to Connect Two Servers Privately with WireGuard
Connect two servers with WireGuard and keep PostgreSQL on the tunnel. Verify peer traffic, private database access and denied public connections.
Firewall and SecurityGICTServer HIPAA Hosting: BAA and Shared Responsibilities
Review GICTServer HIPAA hosting responsibilities and download the BAA and provisioning checklist. Request service-specific coverage through a support ticket.
Firewall and SecurityHow to Sign and Verify Files with Minisign
Sign release files with Minisign, share an authenticated public key, verify downloads, and stop processing when signatures fail.




