Rotate Nginx vHosts Log Files Every 1 Year

Posted on November 11, 2017 at 11:55 pm

Set logrotate to keep 1 year (365 days) of log files:

sed -i 's/rotate 52/rotate 365/' /etc/logrotate.d/nginx

Other Posts

Updated Posts