Skip to content

Instantly share code, notes, and snippets.

@sokil
Created May 19, 2014 11:53
Show Gist options
  • Save sokil/c6df92783b859eb393e4 to your computer and use it in GitHub Desktop.
Save sokil/c6df92783b859eb393e4 to your computer and use it in GitHub Desktop.
Log rotation for nginx+php-fpm stack on FreeBSD
# log rotation for nginx+php-fpm stack on FreeBSD
# File: /etc/newsyslog.conf
/var/log/nginx/*.log 644 15 1000 @T00 JBCG /var/run/nginx.pid 30
/var/log/php_errors.log www:www 644 15 1000 @T00 JBCG /var/run/php-fpm.pid 30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment