TCB13
TCB13

Reputation: 3155

Apache2: Disable directory listing globally

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

Answers (1)

TCB13
TCB13

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

Related Questions