Bug#306024: marked as done (apache2-mpm-prefork: mod_deflate not logging)
Your message dated Tue, 28 Jul 2009 16:21:09 +0200 (CEST)
with message-id <42066.194.224.98.149.1248790869.squirrel@www.sfritsch.de>
and subject line apache2-mpm-prefork: mod_deflate not logging
has caused the Debian Bug report #306024,
regarding apache2-mpm-prefork: mod_deflate not logging
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)
--
306024: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=306024
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: apache2-mpm-prefork
Version: 2.0.53-5
Severity: normal
I'm having a problem with apache2 and mod_deflate on Sarge. I've tried
it with mod_chroot both enabled and not, and it seems to make no
difference. The deflate log is never updated, not matter what I do.
Here's the configuration for /etc/apache2/conf.d/deflate.conf:
<IfModule mod_deflate.c>
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
<Location / >
# Insert filter
SetOutputFilter DEFLATE
# Netscape 4.x has some problems...
BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip
# MSIE masquerades as Netscape, but it is fine
# BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
# the above regex won't work. You can use the following
# workaround to get the desired effect:
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
# Don't compress images or binaries
SetEnvIfNoCase Request_URI \
\.(?:gif|[jm]pe?g|png|t?gz|bz2*|zip|exe|iso|avi)$ no-gzip dont-vary
# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary
</Location>
</IfModule>
a2enmod says that mod_deflate is definitely enabled, so there's no reason
for the logs not to be created.
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages apache2-mpm-prefork depends on:
ii apache2-common 2.0.53-5 next generation, scalable, extenda
ii libapr0 2.0.53-5 the Apache Portable Runtime
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii libdb4.2 4.2.52-18 Berkeley v4.2 Database Libraries [
ii libexpat1 1.95.8-1 XML parsing C library - runtime li
ii libldap2 2.1.30-3 OpenLDAP libraries
ii libpcre3 4.5-1.1 Perl 5 Compatible Regular Expressi
ii libssl0.9.7 0.9.7e-3 SSL shared libraries
ii zlib1g 1:1.2.2-3 compression library - runtime
-- no debconf information
--- End Message ---
--- Begin Message ---
Hi,
I am sorry that no one responded to this bug report for so long.
> I'm having a problem with apache2 and mod_deflate on Sarge. I've tried
> it with mod_chroot both enabled and not, and it seems to make no
> difference. The deflate log is never updated, not matter what I do.
> Here's the configuration for /etc/apache2/conf.d/deflate.conf:
>
> <IfModule mod_deflate.c>
> 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
The log file is overridden in the virtualhost config. You have to move the
CustomLog directive inside the VirtualHost block in
/etc/apache2/sites-enabled/000-defalt. See
http://httpd.apache.org/docs/2.0/logs.html#virtualhost
Cheers,
Stefan
--- End Message ---
Reply to: