Disable Apache directory indexes

I think that using an .htaccess fileis the correct way, but you have to enable it (last option in the web access folder of the shared folder).