I am learning sysadmin and currently I am using nginx on port 80 as my primary web server. I wish to also use apache as a reverse proxy option on port 8080, or swap apache to primary with nginx.
But want I wish to understand is how best to layout user/group permissions to allow nginx/apache to modify the files they need to, as well as my own SSH admin to modify the same files and directories and finally an FTP user to edit their allocated folder like a standard webhost.
That boring chunk of text might not get your attention so I have created a very clear and perfect diagram to explain
Now I understand I cant just give one user/group full access because it seems to close off access by others, the command below will not let apache nor my admin or ftp users to modify files
I have tried different things and read up on this abit but I dont understand how I can do this properly
chown -R nginx:nginx /var/www