arozwalak
3/10/2017 - 7:29 PM

WebServer: logrotate.conf for nginx

WebServer: logrotate.conf for nginx

/var/log/nginx/*.log {
  daily
  missingok
  rotate 52
  compress
  dateext
  delaycompress
  notifempty
  create 640 nginx adm
  sharedscripts
  postrotate
    [ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid`
  endscript
}