RE: User directive error

2019-01-25 Thread Maxim Ozerov
Hm... it doesn't sound believable, but for example, you can restrict the root user with SELinux context ;) > > Hello! > > > Why does this error occur (Ubuntu 18.04/nginx 1.14.0)? > > > > nginx.conf:21 > > user www-data; > > > > error.log > > 2019/01/24 19:07:07 [warn] 3526#3526: the "user" dir

RE: Multitenant invalid configuration reload

2017-03-21 Thread Maxim Ozerov
I think, the reason that nobody answered, that the essence of a problem is accurately not formulated. It in what, that you incorrectly form the configuration file? -Original Message- From: nginx [mailto:nginx-boun...@nginx.org] On Behalf Of mgmuhilan Sent: Monday, March 20, 2017 11:46 PM

RE: RE: Fastcgi_cache permissions

2017-03-09 Thread Maxim Ozerov
> Why would you manipulate nginx cache files from php directly (or even if you > do so why not run the nginx and phpfpm under same user then)? Yeah... For example: with php-fpm you can run each site with its own uid/gid (pool configuration), and with address on which to accept FastCGI requests S

RE: Fastcgi_cache permissions

2017-03-09 Thread Maxim Ozerov
And what is the purpose of changing permissions? In other words - nginx.conf - user www-data; So for example, Directories Access: (0700/drwx) with Uid: (33/www-data) And no one forbids you to access the cache from this user for manipulating files (allow other process (for example php-fpm runs

RE: Log the headers sent by nginx to upstream server

2016-08-31 Thread Maxim Ozerov
"Log format can contain common variables, and variables that exist only at the time of a log write" So, other options I do not see, except ngx_http_log_module But, .. interesting thing is what it means to be overwritten?) Nginx, some adjustments in request headers, receives from the client: - N