| Current Path : /etc/logrotate.d/ |
| Current File : //etc/logrotate.d/nginx |
/var/log/nginx/access.log {
weekly
rotate 4
maxsize 1G
missingok
create 0644 root root
compress
maxage 90
postrotate
kill -USR1 $(cat /var/run/nginx.pid)
endscript
}
/var/log/nginx/error.log {
weekly
rotate 4
missingok
create 0644 root root
compress
maxage 90
postrotate
kill -USR1 $(cat /var/run/nginx.pid)
endscript
}