Skip to content

Instantly share code, notes, and snippets.

@tlacroix
Created July 8, 2020 18:42
Show Gist options
  • Save tlacroix/0ef81bdba7813bf0d06463991fac2972 to your computer and use it in GitHub Desktop.
Save tlacroix/0ef81bdba7813bf0d06463991fac2972 to your computer and use it in GitHub Desktop.
Basic Log Rotation Configuration for Apache Virtual Hosts Logs - /etc/logrotate.d/
/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