In almost every solution of "How to activate htaccess", they say that the /etc/apache2/sites-available/default file needs to be edited. But there isn't such file in Apache 2.4.7
I read somewhere that the new default file is 000-default.conf. So I edited that one and tried to add the line:
AllowOverride All
But Apache2 did not restart correctly and gave an error. From an apache2 documentation, I found that AllowOverride is only allowed under the <Directory>
section. Then I tried adding this:
<Directory "/var/www">
AllowOverride All
</Directory>
And this seems to work. But I am not sure if I should have put /var/www there. Is it a correct way of doing it or will my computer blow up somehow?