forked from pool/apache2
- Add custom log files to logrotate according to apache2-vhost.template In apache2-vhost.template, we recommend users to create custom logs like `/var/log/apache2/dummy-host.example.com-access_log`. But these files are not processed by logrotate and will grow fast. So I add these files to logrotate configuration. OBS-URL: https://build.opensuse.org/request/show/735419 OBS-URL: https://build.opensuse.org/package/show/Apache/apache2?expand=0&rev=587
32 lines
695 B
Plaintext
32 lines
695 B
Plaintext
/var/log/apache2/access_log /var/log/apache2/*-access_log /var/log/apache2/ssl_request_log {
|
|
compress
|
|
dateext
|
|
maxage 365
|
|
rotate 99
|
|
size=+4096k
|
|
notifempty
|
|
missingok
|
|
create 644 root root
|
|
sharedscripts
|
|
postrotate
|
|
systemctl reload apache2.service
|
|
sleep 60
|
|
endscript
|
|
}
|
|
|
|
/var/log/apache2/error_log /var/log/apache2/*-error_log /var/log/apache2/suexec.log /var/log/apache2/ssl_engine_log /var/log/apache2/deflate.log {
|
|
compress
|
|
dateext
|
|
maxage 365
|
|
rotate 99
|
|
size=+1024k
|
|
notifempty
|
|
missingok
|
|
create 644 root root
|
|
sharedscripts
|
|
postrotate
|
|
systemctl reload apache2.service
|
|
sleep 60
|
|
endscript
|
|
}
|