log files as non root user
nginx-forum at nginx.us
Tue Jul 28 19:15:32 UTC 2015
I am trying to configure ngnix where logs and pid file are written to a
custom path and owned as non root. When even I start ngnix these files are
created and owned as root. In ngnix.conf I defined as below. Please advise.
user usradmin mwgroup;
error_log /export/local/opt/ngnix/logs/error.log warn;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
access_log /export/local/opt/ngnix/logs/access.log main;
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,260593,260593#msg-260593
More information about the nginx