V
V
Vanya Zyuzgin2014-10-15 05:20:37
linux
Vanya Zyuzgin, 2014-10-15 05:20:37

How to properly delimit web server access rights?

I would like to sort out this issue once and for all.
There is a bunch of nginx+php5-fpm+mysql. Sites are located in /var/www:
/var/www/site1
/var/www/site2
...
There is a developer (login developer) who has access to the file system of all sites via ssh. Filling sites occurs through the admin panel.
Most of the instructions for installing web servers that can be found on the Internet say that /var/www should be owned by www-data , although why does he need them?
How to correctly, and most importantly, safely distinguish between rights?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
brutal_lobster, 2014-10-15
@site2life

The www-data owner only provides access to files to everyone who runs under this user or is a member of this group - nginx, php-fpm ...
Between whom and why are you going to differentiate rights? You have one developer, one web server too.
But you can set up separate php-fpm pools to somehow try to isolate sites from each other.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question