Logrotate: Automatic Log Rotation on Linux

VDS / VPS Servers · 15.02.2026
Logrotate: Automatic Log Rotation on Linux

Nginx Logrotate Config

/var/log/nginx/*.log {
    daily
    rotate 14
    compress
    delaycompress
    postrotate
        nginx -s reopen
    endscript
}
← Back to Knowledge Base Ask Support