A
A
Alexander Epikhin2019-03-02 10:15:49
Nginx
Alexander Epikhin, 2019-03-02 10:15:49

How to isolate sites on the server from each other?

If on the server to space 1 site - 1 user. What rights to set on the site directory? It turns out that the user and the server must have access to the site directory. Means it is also necessary to add the server to group to the user?
The nginx / ubuntu
Docker server is not suitable for each site, since there are many sites and it is too expensive in terms of resources

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sanes, 2019-03-02
@leshiple

1 site 1 user and from this user pool php-fpm.
Right, as usual. Directories 755, files 644, owner user and group of the same name.
See an example of setting up such an environment.

O
OnYourLips, 2019-03-02
@OnYourLips

I would restrict access with the usual chmod and for each user I would create a separate fpm pool on behalf of this user.

R
Roman, 2019-03-02
@procode

Google the request
or something like that , the
problem is typical, there are solutions, I just don’t remember them offhand))
for example. Apache, www-data, file and directory permissions? and thousands of them

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question