Apache2's mod_deflate logging seems broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apache2 (Ubuntu) |
Invalid
|
Medium
|
Soren Hansen |
Bug Description
Binary package hint: apache2-mpm-prefork
Apache 2's mod_deflate is not logging, despite giving it directives to do so.
Distro Version information:
Ubuntu Dapper Drake 6.06 Flight 7, AMD64 edition.
Also happens on Debian (see: http://
Steps for setting up Apache content compression and reproducing the problem:
# enable the required compression module; mod_deflate is now used instead of libapache-mod-gzip for content compression:
a2enmod deflate
# Load the headers module:
a2enmod headers
# Reload apache:
/etc/init.d/apache2 force-reload
Then "nano /etc/apache2/
# -------
# -------------- Enabling Mod_Deflate ---------------
<IfModule mod_deflate.c>
# Compress all content, manually excluding specified file types
# place filter 'DEFLATE' on all outgoing content
SetOutputFilter DEFLATE
# exclude uncompressible content via file type
SetEnvIfNoCase Request_URI \.(?:gif|
# properly handle requests coming from behind proxies
<IfModule mod_headers.c>
Header append Vary User-Agent env=!dont-vary
</IfModule>
# Keep a log of compression ratio on each request
DeflateFilterNote Input instream
DeflateFilterNote Output outstream
DeflateFilterNote Ratio ratio
LogFormat '"%r" %{outstream}
CustomLog /var/log/
# Properly handle old browsers that do not support compression
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-
</IfModule>
# -------
# Then check above syntax is OK:
apache2ctl -t
# Then restart apache:
/etc/init.d/apache2 force-reload
Result is that the "/var/log/
=======
HTTP/1.1 200 OK
Date: Tue, 16 May 2006 07:28:02 GMT
Server: Apache
Last-Modified: Tue, 16 May 2006 06:53:34 GMT
ETag: "770259-
Accept-Ranges: bytes
Vary: Accept-
Content-Encoding: gzip
Content-Length: 4851
Content-Type: text/html; charset=UTF-8
=======
Note the "Content-Encoding: gzip" header, indicating that the content has apparently been compressed.
Therefore it appears that mod_deflate functionality is working, but that the logging for mod_deflate is not working.
Package version and dependencies:
root@bling:
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Description
+++-===
ii apache2-mpm-prefork 2.0.55-4 traditional model for Apache2
root@bling:
Package: apache2-mpm-prefork
Depends: libapr0 (>= 2.0.55), libc6 (>= 2.3.4-1), libdb4.3 (>= 4.3.28-1), libexpat1 (>= 1.95.8), libldap2 (>= 2.1.17-1), libpcre3 (>= 4.5), libssl0.9.8 (>= 0.9.8a-1), zlib1g (>= 1:1.2.1), apache2-common (= 2.0.55-4)
All the best,
Nick.
Could you please retest this on a Feisty system? Thank you!