/var/log/apache2/*.log {
rotate 10
   weekly
   copytruncate
   size 20M
   missingok
   notifempty
   compress
   
   create 640 root adm
   sharedscripts

   prerotate
      if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
         run-parts /etc/logrotate.d/httpd-prerotate; \
      fi; \
   endscript
} 