From 7ca67b5ddde7fc6822a307a49fbf002f8f12ddf4 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Wed, 17 Sep 2014 10:22:15 -0700 Subject: [PATCH 1/1] LP#1370630: don't log mod_deflate actions by default This patch comments out logging of mod_deflate actions, as this is needed only for debugging. Otherwise, deflate_log will grow without bound, as it isn't dealt with by typical default logrotate configs. Signed-off-by: Galen Charlton Signed-off-by: Ben Shum --- Open-ILS/examples/apache/eg_vhost.conf.in | 15 ++++++++------- Open-ILS/examples/apache_24/eg_vhost.conf.in | 14 ++++++++------ 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/Open-ILS/examples/apache/eg_vhost.conf.in b/Open-ILS/examples/apache/eg_vhost.conf.in index 2f077ea0b2..6f3fae3ccc 100644 --- a/Open-ILS/examples/apache/eg_vhost.conf.in +++ b/Open-ILS/examples/apache/eg_vhost.conf.in @@ -743,15 +743,16 @@ RewriteRule ^/openurl$ ${openurl:%1} [NE,PT] # ---------------------------------------------------------------------------------- -# Some mod_deflate logging setup +# Some mod_deflate setup # ---------------------------------------------------------------------------------- - DeflateFilterNote Input instream - DeflateFilterNote Output outstream - DeflateFilterNote Ratio ratio - - LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate - CustomLog /var/log/apache2/deflate_log deflate + ## optional logging for mod_deflate debugging + ##DeflateFilterNote Input instream + ##DeflateFilterNote Output outstream + ##DeflateFilterNote Ratio ratio + ## + ##LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate + ##CustomLog /var/log/apache2/deflate_log deflate # There are problems with XMLENT and mod_deflate - so lets disable it # This is where we don't have a pre-existing LocationMatch directive earlier diff --git a/Open-ILS/examples/apache_24/eg_vhost.conf.in b/Open-ILS/examples/apache_24/eg_vhost.conf.in index a44b9ada09..53275ae9a6 100644 --- a/Open-ILS/examples/apache_24/eg_vhost.conf.in +++ b/Open-ILS/examples/apache_24/eg_vhost.conf.in @@ -755,15 +755,17 @@ RewriteRule ^/openurl$ ${openurl:%1} [NE,PT] # ---------------------------------------------------------------------------------- -# Some mod_deflate logging setup +# Some mod_deflate setup # ---------------------------------------------------------------------------------- - DeflateFilterNote Input instream - DeflateFilterNote Output outstream - DeflateFilterNote Ratio ratio - LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate - CustomLog /var/log/apache2/deflate_log deflate + ## optional logging for mod_deflate debugging + ##DeflateFilterNote Input instream + ##DeflateFilterNote Output outstream + ##DeflateFilterNote Ratio ratio + ## + ##LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate + ##CustomLog /var/log/apache2/deflate_log deflate # There are problems with XMLENT and mod_deflate - so lets disable it # This is where we don't have a pre-existing LocationMatch directive earlier -- 2.43.2