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
(3) Delete the word "Indexes"
(4) Restart Apache server
(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
Or Options Indexes
Options Includes FollowSymLinks MultiViews
/etc/init.d/apache restart
No comments:
Post a Comment