File nginx.logrotate of Package nginx
/var/log/nginx/*/*.log {
su root root
create 0644 nginx nginx
rotate 91
missingok
compress
dateext
dateformat -%Y%m%d-%s
notifempty
sharedscripts
postrotate
if [ -f /var/run/nginx.pid ]; then
kill -USR1 `cat /var/run/nginx.pid`
fi
endscript
}