Tuesday, May 14, 2024
 Popular · Latest · Hot · Upcoming
78
rated 0 times [  78] [ 0]  / answers: 1 / hits: 172966  / 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
rofity questions
Mon, Apr 25, 22, 12:28, 2 Years ago
Tue, Jul 5, 22, 16:53, 2 Years ago
Sat, Apr 8, 23, 05:32, 1 Year ago
Mon, May 10, 21, 22:51, 3 Years ago
;