I created an .htaccess file with only the following line:
Options -Indexes
However, the index is still shown for the directory.<
As there's no httpd.conf file anymore, what you need to do on a VPS is:
/etc/apache2/sites-enabled/ls to find the file for the website you're looking fornano THE_CONF_FILE or with whatever editor you'd likeAllowOverride None values that you see in different ... s to AllowOverride AllSave the file and close it
Now you need to enable module rewrite by running the command:sudo a2enmod rewrite
service apache2 restartIt'll work like a charm now!