Buscar este blog

viernes, 15 de julio de 2011

How to disable directory browsing using httpd.conf – Apache Web Server

Apache Web Server

Disable directory browsing using httpd.conf:

Open server ssh.
#vim /etc/httpd/conf/httpd.conf 

Find in file httpd.conf loock for Options Indexes 

Original line:       #    Options Indexes FollowSymLinks
Change line:              Options -Indexes FollowSymLinks

Change the Indexes to -Indexes if Option Indexes exists or else add the Options -Indexes line
Save file
Restart your apache web server. Send command  /etc/init.d/httpd restart

The directory browsing feature should be disable by now

No hay comentarios:

Publicar un comentario