Skip to content

Instantly share code, notes, and snippets.

View Nevon's full-sized avatar
:shipit:
Shipping

Tommy Brunn Nevon

:shipit:
Shipping
View GitHub Profile
@Nevon
Nevon / nginx
Created July 25, 2016 11:45 — forked from tejasbubane/nginx
nginx logrotate script for centOS. Location: /etc/logrotate.d/nginx. Later change /etc/logrotate.conf add daily and change or comment "rotate" number (preferably comment to keep all log files -> symlinked to /mnt so no space issue)
/opt/nginx/logs/*.log {
daily
missingok
rotate 52
compress
delaycompress
notifempty
create 640 root adm
sharedscripts
postrotate