/var/log/apache2/*log {
    daily
    dateext
    compress
    delaycompress
    missingok
    notifempty
    sharedscripts
    postrotate
        /etc/init.d/apache2 --quiet --ifstarted reload > /dev/null 2>/dev/null || true
    endscript
}
