[nginx]access log and error log
Maxim Dounin
mdounin at mdounin.ru
Tue Aug 28 00:34:56 UTC 2018
Hello!
On Mon, Aug 27, 2018 at 11:35:53PM +0000, 桐山 健太郎 wrote:
> 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 nginx.service.(/etc/logrotate.d/nginx)
>
> /var/log/nginx/*.log {
> daily
> missingok
> rotate 7
> compress
> create 644 nginx adm
> sharedscripts
> postrotate
> if [ -f /var/run/nginx.pid ]; then
> kill -USR1 'cat /var/run/nginx.pid'
> fi
> endscript
> }
>
> By the way, the log will start recording on both log files after restarting the nginx.service.
>
> I would like to know the issue on here and how to solve it.
This is a mailing list for developers. For user-level questions
like this one, please use the nginx@ mailing list instead. Thank
you.
--
Maxim Dounin
http://mdounin.ru/
More information about the nginx-devel
mailing list