Deflate log

Started by mario, January 21, 2009, 05:10:11 PM

Previous topic - Next topic

mario

Hi,
I tried to use a deflate log file. But it does not work
my config (as from apache manual

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?



Gregg

#1
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

<IfModule deflate_module>
Include conf/extra/httpd-deflate.conf
</IfModule>


conf/extra/httpd-deflate.conf


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

mario

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