Welcome! Log In Create A New Profile

Advanced

Separate UIDs for nginx

August 27, 2011 08:39AM
Hi everyone,

I am planning to move away from apache itk + mod_php to nginx and php-fpm. I have a few virtual hosts (less than 10) and unix user-accounts associated with these vhosts. I already found the pool option of fpm which looks like the perfect way for me to match the domains to the uid php will be using.
However right now nginx itself is always running as user www-data so www-data needs read permissions to all static files of all vhosts. Is there a way to configure nginx to use different uid/gids on different domains (so a user directive inside a server block)? This way my users won't bother me that their website isn't running anymore everytime they screw up their file/directory permissions.

Yours Martin
Subject Author Posted

Separate UIDs for nginx

v1tzl1 August 27, 2011 08:39AM

Re: Separate UIDs for nginx

Ensiferous August 27, 2011 10:17AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 322
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready