Main Stories
Slash Boxes

Slash Open Source Project

Slashcode Log In

Log In

[ Create a new account ]

Article Poll

Poll I found this article to be
Very Helpful
Helpful
Not Helpful
Not Very Helpful
[ Results | Polls ]
Comments:0 | Votes:0

mod_gzip, anyone?

posted by Krow on 05:26 AM March 13th, 2002   Printer-friendly   Email story
Has anyone experimented with using mod_gzip and Slashcode? I tried it last night, and not only did it not seem to do anything, I found out it broke comments.pl (came up with the "active discussions" page instead of posting a comment). Has anyone gotten this to work? My theme makes heavy use of table structures, and could benefit from the compression.
This discussion has been archived. No new comments can be posted.
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
Loading... please wait.
  • by Anonymous Coward
    I use mod_gzip in my apache webserver, with Slash and it works great. Now...

    • I don't know if this is a misunderstanding, but comments.pl _should_ take you to a page entitled "Several active discussions"... What do you find broken?
    • I suggest that you read this [slashcode.com] thread.
    • Are you sure mod_gzip is actually working? You know, the same thing happened to me... I didn't noticed much of a difference, until I checked my error_log and found that every attempt of mod_gzip to compress a document was failing because the temp dir didn't have write permissions! The moral of this stroy is: (a) I'm a moron, and (b) check out your logs.
    • FWIW, here's a piece of my httpd.conf:
    mod_gzip_dechunk Yes
    mod_gzip_minimum_file_size 300
    mod_gzip_maximum_file_size 0
    mod_gzip_maximum_inmem_size 100000
    mod_gzip_keep_workfiles No
    mod_gzip_temp_dir /usr/www/gzip
    mod_gzip_item_include file \.htm$
    mod_gzip_item_include file \.html$
    mod_gzip_item_include file \.shtml$
    mod_gzip_item_include file \.php$
    mod_gzip_item_include file \.pl$
    mod_gzip_item_include mime ^text/.*
    mod_gzip_item_include mime ^application/x-httpd-php
    mod_gzip_item_include mime ^httpd/unix-directory$
    mod_gzip_item_include handler ^perl-script$
    mod_gzip_item_include handler ^server-status$
    mod_gzip_item_include handler ^server-info$
    mod_gzip_item_exclude file \.css$
    mod_gzip_item_exclude file \.js$
    mod_gzip_item_exclude mime ^image/.*
    mod_gzip_item_exclude reqheader Content-Type:multipart/form-data
    mod_gzip_item_exclude reqheader Content-Type:application/x-www-form-urlencoded
    • Well, comments.pl WIL do that if you give in no parameters, but a user attempting to post a comment would get the list instead, and the comment wouldn't get posted. But I will double check all my settings - there may have been something out of place.
      --
      Sci-Fi Storm: http://scifistorm.org/
    • I was lacking the last two exclude lines, which dealt with form postings. This is probably why comment postings wouldn't go through. All is well now...

      -Brian
      --
      Sci-Fi Storm: http://scifistorm.org/
    • Has anyone got mod_gzip to work with mod_proxy and mod_perl together? I'm still searching for a solution. Apparently mod_proxy doesn't play well with mod_gzip. You get this on every perl request:
      [15/Mar/2002:10:48:06 -0500] \GET /article.pl?sid=02/03/08/1742254&mode=nested HTTP/1.0\ 200 0 mod_gzip: TRANSMIT_ERROR:ISMEM:0 In:39372 Out:7170:82pct.
  • Yes, this has been asked and answered before. Go here [slashcode.com] for the previous discussion. You'll find various sample config files including one from myself that works nicely =)
    • Well, I DID do a search for "gzip" and "mod_gzip" on slashcode, with no hits. THAT'S why I asked... :^)

      I'll go through the article and other suggestions, and see what groks.
      --
      Sci-Fi Storm: http://scifistorm.org/
      • In your defence, when I saw the article, remembered the previous article and also tried to search for gzip and mod_gzip using the slashcode search. Are we talking bug here in the search? I had to do a google "site:slashcode.com mod_gzip" to find the old article.