I have changed the Apache2 public directory for years changing the content of file
/etc/apache2/sites-available/000-default.conf
so:
DocumentRoot /home/user/www
<Directory "/home/user/www">
Require all granted
</Directory>
In the file: /etc/apache2/apache2.conf
I wrote the follow line as last line
ServerName localhost
Then I go to restarted Apache with:
sudo /etc/init.d/apache2 restart
All the past times this have resulted but in Ubuntu 21.04 when I go In my Web Browser to:
http://localhost it show me 403 error:
Forbidden
You don't have permission to access this resource.
I see it have changed somthing in Apache. How can I fix that?
Thanks
/home/user/www
directory? Also look at the Apache error log, you may find more detailed explanation there.