I have a Debian server and the directory for the projects in apache is the traditional / var / www / html, I'm trying to block the browsing of directories and sub-directories by browser with .htaccess but I'm not hitting.
The .htaccess code is in the html folder with 644 user permission www-data:
<Directory /var/www/html>
AllowOverride All
Options -Indexes
</Directory>