So basically something is overriding your config. From the documentation of apache we can read that Options
is can be placed in various context: server config, virtual host, directory, .htaccess.
httpd.conf
is read first, so if You provided the configuration properly there, it means that it is overridden somewhere else
How did You do enter the options in the config ? In the most basic variant it should be.
<Directory /path>
Options -Indexes
</Directory>
Here what you should do:
- check module configurations in
modules
forOptions Indexes
- check the main virtualhost definition, probably called
default
or000-default
If it still does not help, add Options -Indexes
to your virtualhost directly (provided you have not done it already). Or add it to the .htaccess
file in your directory (allowing Options in .htaccess needs to be switched on)[as suggested in comments]