Disable Apache Directory Listing

Normally Apache comes with the directory listing enabled. You can disable this as a part of securing your web sites.



(1) Open your SSH command terminal and edit the /etc/apache2/apache2.conf
sudo nano /etc/apache/apache2.conf




(2) Look for a line that says
Options Includes Indexes FollowSymLinks MultiViews
Or Options Indexes

(3) Delete the word "Indexes"
Options Includes FollowSymLinks MultiViews

(4) Restart Apache server
/etc/init.d/apache restart


No comments:

Post a Comment

© Copyright 2014 TechYah International . Some Rights Reserved. Blogger Template by Way2themes

The images and videos shown here may be copywrited material and are of the respective authors of the materials. Our authors are adviced to include the references of the materials giving proper copywrite to the respective authors. However, If you find a copyright violation please inform us at moments@techyah.com