logrotate for nginx

vi /etc/logrotate.d/nginx
/srv/www/*/logs/*log {
        daily
        missingok
        rotate 52
        compress
        delaycompress
        notifempty
        create 640 nginx adm
}
# debug
logrotate -d /etc/logrotate.conf
# focus logrotate with verbose info
logrotate -f -v /etc/logrotate.conf