Quote:
Originally Posted by poiuytrez
Hello,
I am trying to disable the directory listing in apache on debian lenny but I don't find the option in apache2.conf.
I found many tutorial on internet but they usually disable it in their virtual host. I have many virtual host so I want to disable the directory listing globally.
Thank you.
|
Hello,
If you want to disable directory listing in Apache2 completely just disable the autoindex module using the command:
That removes the symlink to the module from the mods-enabled directory. Restart apache2 and that's it.
If you only want to disable listing of certain types of files edit the autoindex.conf file in mods-available (IndexIgnore ) and restart apache2.
Kind regards,
Eric