From c5130548b54b6bf4931caf37ed8ada2203dc82dab426cc5fc26991356246310c Mon Sep 17 00:00:00 2001 From: Petr Gajdos Date: Mon, 7 Oct 2019 07:27:44 +0000 Subject: [PATCH] Accepting request 735419 from home:guoyunhe:branches:Apache - 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 --- apache2.changes | 5 +++++ apache2.logrotate | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/apache2.changes b/apache2.changes index 3a1e3b7..d603541 100644 --- a/apache2.changes +++ b/apache2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Oct 5 14:03:54 UTC 2019 - Yunhe Guo + +- Add custom log files to logrotate according to apache2-vhost.template + ------------------------------------------------------------------- Fri Aug 23 18:06:12 UTC 2019 - Jan Engelhardt diff --git a/apache2.logrotate b/apache2.logrotate index a9d808e..3378caf 100644 --- a/apache2.logrotate +++ b/apache2.logrotate @@ -1,4 +1,4 @@ -/var/log/apache2/access_log /var/log/apache2/ssl_request_log { +/var/log/apache2/access_log /var/log/apache2/*-access_log /var/log/apache2/ssl_request_log { compress dateext maxage 365 @@ -14,7 +14,7 @@ endscript } -/var/log/apache2/error_log /var/log/apache2/suexec.log /var/log/apache2/ssl_engine_log /var/log/apache2/deflate.log { +/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