Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

gav (2710)

gav
  (email not shown publicly)
http://www.estey.com/
AOL IM: flufflegavin (Add Buddy, Send Message)

Hacker in NYC.

Journal of gav (2710)

Sunday March 21, 2004
09:58 PM

mod_gzip tip

[ #17999 ]

After enabling mod_gzip I noticed that it wasn't compressing the output of some CGI scripts. In the logs I was seeing:

SEND_AS_IS:RESPONSE_CONTENT_TYPE_EXCLUDED

This seemed strange because I had the following entry in my httpd.conf:

mod_gzip_item_include mime ^text/html$

After looking at what was going on (thanks to livehttpheaders) I figured out that I wasn't sending "text/html", I was sending "Content-Type: text/html; charset=ISO-8859-1" which the regexp didn't match. Changing it to the following fixed the problem.

mod_gzip_item_include mime ^text/html

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.