httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Hegadorn" <yanks...@directvinternet.com>
Subject [users@httpd] mod_gzip and cgi...
Date Sat, 09 Nov 2002 02:03:16 GMT
Hello,
 I just installed mod_gzip in apache so I could use less bandwith, the
pages are smaller, etc. Now I got cgi scripts to compress ok, but
there's one that I'm having trouble with. I don't know if it has to do
with the apache config or whatever. Here's the mod_gzip config in the
httpd.conf file:

<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_static_suffix .gz
AddEncoding gzip .gz
mod_gzip_update_static No
mod_gzip_command_version '/mod_gzip_status'
mod_gzip_minimum_file_size 300
mod_gzip_maximum_file_size 500000
mod_gzip_maximum_inmem_size 60000
mod_gzip_min_http 100
mod_gzip_handle_methods GET POST
mod_gzip_item_include file \.htm$
mod_gzip_item_include file \.cgi$
mod_gzip_item_include file \.html$
mod_gzip_item_include file \.pl$
mod_gzip_item_include mime ^httpd/unix-directory$
mod_gzip_item_include mime ^text/html$
mod_gzip_item_include mime ^text/plain$
mod_gzip_item_include mime ^application/x-httpd-cgi$
mod_gzip_item_include handler ^cgi-script$
# mod_gzip_item_include handler ^perl-script$
mod_gzip_item_exclude file \.css$
mod_gzip_item_exclude file \.js$
mod_gzip_item_exclude mime ^image/.*
mod_gzip_dechunk yes
mod_gzip_temp_dir /tmp
mod_gzip_keep_workfiles No
mod_gzip_can_negotiate yes
mod_gzip_send_vary Yes
mod_gzip_add_header_count Yes
</IfModule>

Everything looks ok in there, and here's the return header of the cgi
script incase that's my problem:

HTTP/1.1 200 OK
Date: Fri, 08 Nov 2002 22:22:26 GMT
Server: Apache/1.3.26 (Trustix Secure Linux/Linux) mod_perl/1.26
mod_gzip/1.3.26.1a
Set-Cookie: iBSessionID=7828df3086987b5ff934e25d517beacc; path=/;
expires=Sat, 09-Nov-2002 22:22:28 GMT
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Connection: close
Content-Type: text/html; charset=ISO-8859-1

I have expires active on so any proxies wouldn't cache this page since
its a bb. Any clues to why it wouldn't compress?? btw for the record,
I am using http://leknor.com/code/gziped.php to check the gzip. Why
doesn't this script compress??

Thanks
-Mike


------------------------------
Faith: you know you're gonna live thru the rain 
Lord you got to keep the faith 
Faith: don't let your love turn to hate 
Right now we got to keep the faith 
Faith: now it's not too late 
Try to hold on, trying to hold on 
Keep the faith

-Bon Jovi, "Keep the Faith"

---------------------------------------------------------------------
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.org


Mime
View raw message