I need to disable that indexing when I enter on my root directory on a apache2 server, any tips?
Edit your apache2 configuration file which normally is on the dir: "/etc/apache2/httpd.conf".
Add the following or edit if your already have some configurations for the default web server dir (/var/www):
<Directory /var/www> Options -Indexes AllowOverride All Order allow,deny Allow from all </Directory>
This will disable the indexing to all the public directories.
Usually done like this:
Options -Indexes
The minus means "no"...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With