httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Guadagno" <to...@guadagno.org>
Subject Re: [users@httpd] Mod Deflate and PDF
Date Mon, 25 Jun 2007 02:37:54 GMT
Grant,
  I don't know why, but I can confirm that it does break pdf's  I have had to exclude them,
I have had this issue since I started with Apache (2.0.54)
I do this

	SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
	SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary
	SetEnvIfNoCase Request_URI \.zip$ no-gzip dont-vary
	SetEnvIfNoCase Request_URI \.mp3$ no-gzip dont-vary


If anyone knows a way to fix, I would like to know also.


***********************************************
Tony Guadagno
Guadagno Consulting
tonyg@guadagno.org
585.703.6700
***********************************************

>>> "Grant Peel" <gpeel@thenetnow.com> 6/24/2007 1:50 PM >>>
Hi again all,

I was reading about deflating only text content since jpgs etc are already compressed.

My deflate_log looks as thus:

defiant# tail -f deflate_log
"GET / HTTP/1.0" -/- (-%)
"GET / HTTP/1.0" -/- (-%)
"GET / HTTP/1.0" -/- (-%)
"GET / HTTP/1.0" -/- (-%)
"GET / HTTP/1.0" -/- (-%)
"GET / HTTP/1.0" -/- (-%)
"GET / HTTP/1.0" -/- (-%)
"GET / HTTP/1.0" -/- (-%)
"GET / HTTP/1.0" -/- (-%)
"GET / HTTP/1.0" -/- (-%)

Here are the relevent lines from httpd.conf

# SetOutputFilter DEFLATE
# DeflateCompressionLevel 1
AddOutputFilterByType DEFLATE text/html text/plain
DeflateFilterNote Input input_info
DeflateFilterNote Output output_info
DeflateFilterNote Ratio ratio_info
LogFormat '"%r" %{output_info}n/%{input_info}n (%{ratio_info}n%%)' deflate
CustomLog /var/log/deflate_log deflate

SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|gz2|sit|rar)$ no-gzip dont-vary


Any ideas why the logs appear broken?

-Grant


  ----- Original Message ----- 
  From: Grant Peel 
  To: users@httpd.apache.org 
  Sent: Sunday, June 24, 2007 12:42 PM
  Subject: [users@httpd] Mod Deflate and PDF


  Hi all,

  It seems mod deflate may be causing some older versions of windows (98, 2000) to cracsh
when pdf's are accessed.

  Does any one know of this and any patches/workarounds that might help?

  I am running FreeBSD 6.2 and apache 2.2.3.

  Mime types pehaps?

  -Grant

------------------------------------------------------------------------------
        Total Control Panel  Login  
        To: gpeel@thenetnow.com  Message Score:  2   High (60): Pass  
        From: users-return-73435-gpeel=thenetnow.com@httpd.apache.org  My Spam Blocking Level:
 High  Medium (75): Pass  
             Low (90): Pass 
           Block messages from this sender (blacklist)    
          
        This message was delivered because the content filter score did not exceed your filter
level.  


Mime
View raw message