Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
78
rated 0 times [  78] [ 0]  / answers: 1 / hits: 172962  / 1 Year ago, fri, february 24, 2023, 3:30:49

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.


More From » apache2

 Answers
0

For apache version 2.4 and later, you have to go to



/etc/apache2/apache2.conf



You have to edit that file (you should have root permission). Change directory text like this;



<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>


Now restart apache.



service apache2 restart


Hope it works.


[#26991] Friday, February 24, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rofity

Total Points: 182
Total Questions: 98
Total Answers: 115

Location: Albania
Member since Sat, Jan 7, 2023
1 Year ago
;