You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Grant Peel <gp...@thenetnow.com> on 2007/06/24 18:42:12 UTC
[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
Re: [users@httpd] Mod Deflate and PDF
Posted by Grant Peel <gp...@thenetnow.com>.
Hi Tony,
Thanks for the response. I have confirmed with some clients that some pdfs that were not working are again working.
Just fyi. the lines below can be rewritten as:
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|pdf|PDF|zip|mp3)$ no-gzip dont-vary
(not that it matters),
-Grant
----- Original Message -----
From: Tony Guadagno
To: users@httpd.apache.org ; Grant Peel
Sent: Sunday, June 24, 2007 10:37 PM
Subject: Re: [users@httpd] Mod Deflate and PDF
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" <gp...@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.
------------------------------------------------------------------------------
Total Control Panel Login
To: gpeel@thenetnow.com Message Score: 2 High (60): Pass
From: users-return-73440-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.
------------------------------------------------------------------------------
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.orgTotal Control Panel
https://asp-0.reflexion.net/userHome.jsp?uID=10000258
Re: [users@httpd] Mod Deflate and PDF
Posted by Tony Guadagno <to...@guadagno.org>.
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" <gp...@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.
Re: [users@httpd] Mod Deflate and PDF
Posted by Grant Peel <gp...@thenetnow.com>.
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.