Comment 6 for bug 44975

Revision history for this message
sammael (davej-ad) wrote : Re: [Bug 44975] Re: Apache2's mod_deflate logging seems broken

thanks for pointing me in right direction. i've just moved

    # place filter 'DEFLATE' on all outgoing content
    SetOutputFilter DEFLATE
    # exclude uncompressible content via file type
    SetEnvIfNoCase Request_URI \.(?:exe|t?gz|jpg|zip|bz2|sit|rar)$ no-gzip
dont-vary
    # Keep a log of compression ratio on each request
    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
    # 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-text/html

from apache2.conf to /etc/apache2/sites-available/default

and logging now works:

"GET /tahakyeu/asp/asp_cvic_dod_odb.zip HTTP/1.1" -/- (-%)
"GET /tahakyeu/fotoalbum.php?odkial= HTTP/1.1" 2124/6133 (34%)
"GET /tahakyeu/foto_start.php HTTP/1.1" 694/1251 (55%)
"GET /tahakyeu/_fotke/krajinky/page_01.php?kolko=90&kolko2=90 HTTP/1.1"
921/4584 (20%)
"GET /tahakyeu/_fotke/krajinky/picview.php?obr=072.jpg&kolko=90&kolko2=90HTTP/1.1"
501/963 (52%)
"GET /tahakyeu/_fotke/krajinky/072.jpg HTTP/1.1" -/- (-%)
"GET /tahakyeu/_fotke/krajinky/page_01.php?kolko=90&kolko2=90 HTTP/1.1"
921/4584 (20%)

thank you very much!

On 12/06/07, Soren Hansen <email address hidden> wrote:
>
> I've looked over the documentation for Apache and may have found the
> reason why you're having problems. It *is* indeed possible to define
> multiple log files, so it's not because your deflate.log gets overridden
> later, *but* http://httpd.apache.org/docs/2.0/logs.html#virtualhost says
> that "If CustomLog or ErrorLog directives are placed inside a
> <VirtualHost> section, all requests or errors for that virtual host
> will be logged only to the specified file. Any virtual host which does
> not have logging directives will still have its requests sent to the
> main server logs."
>
> Does that perhaps apply to your setup?
>
> --
> Apache2's mod_deflate logging seems broken
> https://bugs.launchpad.net/bugs/44975
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
kill me again, or take me as i am,
for i shall not change - NEVER !