Apache ignores Options -Indexes

I want to disable Indexes server-wide. I tried the following:

In /etc/var/apache2/conf-available/security.conf:

<Directory />
Options +SymLinksIfOwnerMatch -Indexes -ExecCGI -Includes
AllowOverride None
Require all denied
</Directory>

I know that security.conf is active, other directives in the file are working. But indexes are still shown. Then I edited /etc/apache2/sites-available/000-default.conf:

<VirtualHost *:80>
...
Options -Indexes
...
</VirtualHost>

Doesn't work either. I have reloaded, stopped and started apache multiple times.


Solution 1:

Assuming that the question is "Why does -Indexes not work?"

Check all files, you probably have more <Directory ... blocks in other files as well.

Easies to find these might be to grep -r Options /etc/apache* hopefully that finds the offender.

Question about dumping configuration that could help