/var/log/nginx/website_preview/*.log {
    missingok
    rotate 15
    compress
    delaycompress
    notifempty
    nodateext
    sharedscripts
    daily
    create 0640
    postrotate
        if [ -f /var/run/nginx.pid ]; then
            kill -USR1 `cat /var/run/nginx.pid`
        fi
    endscript
}
