nginx logrotate config
- by TomOP
Whats the best way to rotate nginx logfiles? In my opinion, I should create a file "nginx" in /etc/logrotate.d/ and fill it with the following code and do a /etc/init.d/syslog restart after that.
This would be my config (I havn't tested it yet):
/usr/local/nginx/logs/*.log {
#rotate the logfile(s) daily
daily
# adds extension like…