Disable Web Apache directory browsing

http://www.techiecorner.com/106/how-to-disable-directory-browsing-using-htaccess-apache-web-server/

find / -name httpd.conf
/usr/share/susehelp/httpd.conf

<Directory /usr/share/doc>
Options FollowSymLinks Indexes Includes +Multiviews

Disable directory browsing using httpd.conf:-

  • Open your httpd.conf, normally it’s located at /usr/local/apache/conf or /etc/httpd.conf
  • Go to your own Virtual Host settings and look for “Options Indexes
  • Change the Indexes to -Indexes if Option Indexes exists or else add the Options -Indexes line
  • Restart your apache web server.
  • The directory browsing feature should be disable by now

 

Jan D.
Jan D.

"The only real security that a man will have in this world is a reserve of knowledge, experience, and ability."

Articles: 673