Re: Nginx access log and error log

2022-03-03 Thread Sergey A. Osokin via nginx
Hi, On Thu, Mar 03, 2022 at 05:21:35PM -0500, aishwarya.deshmukh wrote: > Hi > > Currently the access log and error log are written with the below > permission > > -rw-r-. 1 nginx adm 268 Mar 4 03:43 error.log > > However I want them to write in -rwxr-xr-x but everytime it writes the > ac

Nginx access log and error log

2022-03-03 Thread aishwarya.deshmukh
Hi Currently the access log and error log are written with the below permission -rw-r-. 1 nginx adm 268 Mar 4 03:43 error.log However I want them to write in -rwxr-xr-x but everytime it writes the access or error logs, it writes in a read format. I can manually change their permission but

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

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'

[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