I am trying to disable the Auto index of directories in the apache config.
<VirtualHost *:80>
ServerName example.com
ServerAlias www.example.com example.co.uk www.example.co.uk
DocumentRoot /var/www/sites/example.com/public
ErrorLog /var/log/httpd/error.log
CustomLog /var/log/httpd/access.log combined
Options -Indexes
</VirtualHost>
Will putting Options -Indexes
into the VirtualHost configuration disable autoindex in these directories?