Skip to content

Instantly share code, notes, and snippets.

@mrTimofey
Created March 9, 2018 04:05
Show Gist options
  • Save mrTimofey/c5264f65524ef871ff4d0685919e61e5 to your computer and use it in GitHub Desktop.
Save mrTimofey/c5264f65524ef871ff4d0685919e61e5 to your computer and use it in GitHub Desktop.
Logrotate all Laravel projects in /var/www
/var/www/*/storage/logs/*.log {
rotate 14
daily
compress
maxage 14
notifempty
create 644 www-data www-data
su www-data www-data
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment