Created
July 8, 2020 18:42
-
-
Save tlacroix/0ef81bdba7813bf0d06463991fac2972 to your computer and use it in GitHub Desktop.
Basic Log Rotation Configuration for Apache Virtual Hosts Logs - /etc/logrotate.d/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/var/www/*/logs/*.log { | |
size 10M | |
missingok | |
notifempty | |
sharedscripts | |
delaycompress | |
postrotate | |
/sbin/service reload httpd | |
endscript | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment