Answer the question
In order to leave comments, you need to log in
How to set a user for each nginx virtual server?
There are a number of sites on one server. There is a task for each of the sites to create a user with limited access only to their own directory. I know only one place where you can register a user in nginx, this is in the nginx.conf file. How to do this for each site, I do not understand. Please help.
Answer the question
In order to leave comments, you need to log in
In principle, you can run several nginx instances on different ports, but IMHO this is nonsense. Nginx is a very efficient server and will handle all sites from a single instance. As for users for sites, it is customary to solve this using PHP-FPM, but there are no problems with this - you run several pools, each under its own user and with a separate socket. And then tell Nginx for each virtual host to use its own socket.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question