Reputation: 3155
I've a Debian WebServer running Apache2. How can I disable directory listing, globally, for all websites?
Note: This should also overwrite possible settings of virtual hosts.
Upvotes: 0
Views: 520
Reputation: 3155
Issue the following in you server terminal:
sudo a2dismod autoindex
service apache2 reload
After this all websites will have directory listing disabled.
Upvotes: 2