All the tutorials tell me to edit the: /etc/apache2/sites-available/default but this file doesn't exist for me. Within this file I would have to edit the:
<Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None #AllowOverride All #AllowOverride AuthConfig FileInfo Indexes Limit Options=All, MultiViews Order allow,deny allow from all </Directory>
What should the file look like and should I create it myself?
Aslo I do have a 000-default.conf file but the above 'code' isn't in there either.
AllowOverride All, this means all settings can be set (overridden) in.htaccessfiles. See docs: https://httpd.apache.org/docs/2.4/mod/core.html#allowoverride – jacwah Nov 27 '18 at 15:59sudo a2enmod rewriteand thensudo service apache2 restart, this worked for me. – Umer Abbas Aug 11 '20 at 06:02/var/www/htmlnot/var/www. – Dan Feb 05 '21 at 15:07