Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6107

403 Error - Apache VirtualHost - Ubuntu 22.04

$
0
0

i recently install ubuntu 22.04 and try to use LAMP on it.but i have problem with VirtualHost.i want use virtualhosts with a local domain like: test.locali added this domain to /etc/hosts and add this configuration to my test.local.conf:

<VirtualHost *:80>        ServerName test.local        ServerAdmin webmaster@localhost        DocumentRoot /home/soroush/Sites/test<Directory "/home/soroush/Sites/test" >           Order allow,deny           Allow from all           Require all granted</Directory></VirtualHost>

and then run: a2ensite test.local.confbut when i open test.local in my browser, apache show me a 403 error.Sites/test folder and files have 0777 permission and owner is my username.what i should to do for fix this problem?


Viewing all articles
Browse latest Browse all 6107

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>