I can not access my web application stored in /var/www. I think I have problem with configuration of user and group on that directory. My configuration looks like this: drwxr-xr-x 2 www-data www-data 4096 Feb 29 15:54 html drw-r--r-- 4 www-data www-data 4096 Mar 8 16:46 www.example.com The problem output on my browser is as followed: Forbidden You don't have permission to access / on this server. Apache/2.4.10 (Debian) Server at 11.22.33.44 Port 80
Check at your apache config. if you have enabled the Indexes option (which I do not think is a good practice): Code: Options +Indexes More over, the www.example.com is directory, so you will need the x permission, for example 755.
Hey I think all you need is to have ‘execute’ access to your ‘example.com’ too, and there is a good idea to run ‘chmod 755 example.com -R’ tu ensure that all files inside of directory have same permissions.