/var/log/lighttpd/access.log {
    compress
    dateext
    maxage 365
    rotate 99
    size=+4096k
    notifempty
    missingok
    create 600 wwwrun www
    postrotate
      kill -HUP $(cat /var/run/lighttpd.pid)
    endscript
}

/var/log/lighttpd/error.log {
    compress
    dateext
    maxage 365
    rotate 99
    size=+1024k
    notifempty
    missingok
    create 600 wwwrun www
    postrotate
      kill -HUP $(cat /var/run/lighttpd.pid)
    endscript
}
