I want to disable directory browsing of /galerias folder and all subdirectories
Index of /galerias/409
* Parent Directory * i126937298
The best way to do this is disable it with webserver apache2. In my Ubuntu 14.X - open /etc/apache2/apache2.conf
change from
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
to
Options FollowSymLinks
AllowOverride None
Require all granted
then restart apache by:
sudo service apache2 reload
This will disable directory listing from all folder that apache2 serves.