Quantcast
Channel: Nginx Forum
Viewing all articles
Browse latest Browse all 53287

nginx user directive - multiple users?

$
0
0
Hi,

I'm using nginx as a reverse proxy with apache. I'm using fcgi/mod_fcgi, hence, my php processes run under specific 'users' from each domain on my server.

Example:
site1.com

user = site1

site2.com

user = site2

However, in nginx.conf, I can only use one user. So if I put "site1", then site2 does not work for obvious reasons. Any solutions? Something like

user site1 site2;
or
user site1 || site2;
or
user site1, site2;

Would anything like that work?

For now, I'm running it as nobody and it is working fine but I wonder if that's safe? How about running it as root user? Safe?

Viewing all articles
Browse latest Browse all 53287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>