From plop718, 10 Months ago, written in Plain Text.
  1. /var/log/apache2/*.log {
  2.         daily
  3.         missingok
  4.         rotate 30
  5.         notifempty
  6.         create 640 root adm
  7.         dateext
  8.         dateformat .%Y%m%d
  9.         extension .log
  10.         sharedscripts
  11.         postrotate
  12.                 if /etc/init.d/apache2 status > /dev/null ; then
  13.                     /etc/init.d/apache2 reload > /dev/null;
  14.                 fi;
  15.         endscript
  16.         prerotate
  17.                 if [ -d /etc/logrotate.d/httpd-prerotate ]; then
  18.                         run-parts /etc/logrotate.d/httpd-prerotate;
  19.                 fi;
  20.         endscript
  21. }
  22.  
captcha