The Apache Haus Forum

Advanced search  

News:

Welcome to Apache Haus Distribution Forum

Pages: [1]   Go Down

Author Topic: Deflate log  (Read 8207 times)

mario

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 575
Deflate log
« 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
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?


Logged

Gregg

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 833
Re: Deflate log
« Reply #1 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
« Last Edit: January 23, 2009, 05:01:53 AM by Gregg »
Logged

mario

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 575
Re: Deflate log
« Reply #2 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
Logged
Pages: [1]   Go Up
 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13