The Apache Haus Forum

Forum Topics => Apache 2.2 => Topic started by: mario on January 21, 2009, 05:10:11 PM

Title: Deflate log
Post by: mario on January 21, 2009, 05:10:11 PM
Hi,
I tried to use a deflate log file. But it does not work
my config (as from apache manual (http://httpd.apache.org/docs/2.2/mod/mod_deflate.html#deflatefilternote)
Code: [Select]
SetOutputFilter DEFLATE

DeflateFilterNote Input instream
DeflateFilterNote Output outstream
DeflateFilterNote Ratio ratio

LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate
CustomLog /server2/logs/deflate.log deflate

But I'm getting ab empty file with name deflate.log.1232496000

What is wrong with that config? Anything that I can improve on that?


Title: Re: Deflate log
Post by: Gregg on January 23, 2009, 04:36:25 AM
Example of what I get in the log

"GET / HTTP/1.1" 853/1758 (48%)
"GET /ss.css HTTP/1.1" 353/1476 (23%)
"GET /images/title.gif HTTP/1.1" -/- (-%)
"GET /favicon.ico HTTP/1.1" 517/920 (56%)
"GET /favicon.ico HTTP/1.1" 517/920 (56%)

conf/httpd.conf
Code: [Select]
<IfModule deflate_module>
Include conf/extra/httpd-deflate.conf
</IfModule>

conf/extra/httpd-deflate.conf

Code: [Select]
DeflateFilterNote Input instream
DeflateFilterNote Output outstream
DeflateFilterNote Ratio ratio
LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate
CustomLog /usr/apache/logs/deflate.log deflate

<Location />
AddOutputFilterByType DEFLATE text/html text/plain text/css

# 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

# Don't compress images
SetEnvIfNoCase Request_URI \
\.(?:gif|jpe?g|png|swf|flv)$ no-gzip dont-vary

<IfModule headers_module>
# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary
</IfModule>
</Location>



ok .. I guess that's my whole config for deflate .. oh well
Title: Re: Deflate log
Post by: mario on January 23, 2009, 02:04:14 PM
Got my error  ::) I had to put that into my vhost, but the file file name is still what I expected.

deflate.log.1232668800  The 1232668800 seem to be the timestamp from 2009-01-23 01:00:00