RE: [nginx]access log and error log

2018-08-27 Thread 桐山 健太郎
Hi, Josh Appreciate for your advice. I will try either both of those and will try to fix this issue. Regards, Kentaro From: nginx [mailto:nginx-boun...@nginx.org] On Behalf Of Josh Cooley Sent: Tuesday, August 28, 2018 2:02 PM To: nginx@nginx.org Cc: 小栗 雅士; 千葉 幸宏 Subject: Re: [nginx]access log a

Re: [nginx]access log and error log

2018-08-27 Thread Josh Cooley
Your postrotate script contains single ticks (') instead of backticks (`), but you should really use the $( command ) construct if your /bin/sh is bash. INCORRECT (what you have now): if [ -f /var/run/nginx.pid ]; then kill -USR1 'cat /var/run/nginx.pid'

[no subject]

2018-08-27 Thread 王维
___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

[nginx]access log and error log

2018-08-27 Thread 桐山 健太郎
Hello, I’m suffering a problem with access.log and error.log for nginx.service on RHEL 7.4. The problem is either access.log and error.log are not recording the log. To solve this issue, I have tried multiple time changing logrotation setting for nginx. Below is the setting of logrotation for

Re: Questions regarding worker_connections

2018-08-27 Thread Maxim Dounin
Hello! On Mon, Aug 27, 2018 at 10:31:13AM -0700, Alder Netw wrote: > Thanks Maxim for the info. So worker connections in waiting state may not > be > ready to be reused. Is there any maximum waiting time? We seem to run into > a condition that those connections are permanently stuck in waiting s

Re: Questions regarding worker_connections

2018-08-27 Thread Alder Netw
Thanks Maxim for the info. So worker connections in waiting state may not be ready to be reused. Is there any maximum waiting time? We seem to run into a condition that those connections are permanently stuck in waiting state. Also, what would be the ball-park number of worker_connections should

Re: Resolver not working as expected

2018-08-27 Thread Maxim Dounin
Hello! On Mon, Aug 27, 2018 at 06:56:01PM +0530, Sharan J wrote: > Hi, > > Sample conf: > > http{ > resolver x.x.x.x; > server { > server_name _; > location / { > proxy_pass http://somedomain.com; > } > } > > I have nameservers configured in my resolv.conf. But,

Resolver not working as expected

2018-08-27 Thread Sharan J
Hi, Sample conf: http{ resolver x.x.x.x; server { server_name _; location / { proxy_pass http://somedomain.com; } } I have nameservers configured in my resolv.conf. But, somedomain.com will be configured in x.x.x.x DNS server only. So, I have specified resolver in

Re: Questions regarding worker_connections

2018-08-27 Thread Maxim Dounin
Hello! On Fri, Aug 24, 2018 at 02:54:31PM -0700, Alder Netw wrote: > Got a question regarding the worker_connections configuration. Is a > worker_connection > essentially > a tcp socket connection or http session? The worker_connections directive configures maximum number of connections a worke