Welcome, Guest. Please Login or Register.
June 19, 2025, 04:35:53 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  English User Help  |  English Help  |  HELP: mod_gzip « previous next »
Pages: [1] Reply Ignore Print
Author Topic: HELP: mod_gzip  (Read 416 times)
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
HELP: mod_gzip
« on: March 02, 2002, 06:38:44 PM »
Reply with quote

I installed mod_gzip on my Linux Apache 1.3 server last night and it is working but doesn't compress anything.  I need help.  I downloaded the .so file and used apxs to compile it in and php_info shows it compiled in.  I then added this to my httpd.con,
LoadModule gzip_module        libexec/mod_gzip.so
AddModule mod_gzip.c
#Added 3-1-02
#mod_gzip config
mod_gzip_on Yes
mod_gzip_minimum_file_size 300
mod_gzip_maximum_file_size 0
#mod_gzip_min_http 1001
mod_gzip_maximum_inmem_size 100000
mod_gzip_keep_workfiles No
mod_gzip_temp_dir /usr/local/apache/gzip
mod_gzip_dechunk Yes
mod_gzip_item_include mime "application/x_httpd-php"
mod_gzip_item_include mime text/*
mod_gzip_item_include mime "httpd/unix-directory"
mod_gzip_item_include file "\.txt$"
mod_gzip_item_include file "\.html$"
mod_gzip_item_include file "\.php$"
mod_gzip_item_exclude file "\.css$"
LogFormat "%h %l %u %t \"%V %r\" %>s %b mod_gzip: %{mod_gzip_result}n In:%{mod_gzip_input_size}n Out:%{mod_gzip_output_size)n:%{mod_gzip_compression_ratio}npct." common_with_mod_gzip_info2
CustomLog /var/log/httpd/mod_gzip_log common_with_mod_gzip_info2
The config chunk is just in the main server configuration, does it need to be somewhere else?  Any help is really appreciated!

Also you can take a look at my log file made by mgstat here http://216.99.209.191/mgstat/.  The tmp directory is writable by mod_gzip and I have seen it write files into it.

SERVER_SOFTWARE Apache/1.3.23 (Unix) mod_gzip/1.3.19.1a PHP/4.1.1

Does this mean that gzip is running?
Here are some lines from my log file.
192.168.1.1 - - [02/Mar/2002:00:08:29 -0800] "216.99.209.191 GET /modules/newbb/index.php HTTP/1.1" 200 39122 mod_gzip: RECOVERY In:0 Out:-pct.
192.168.1.1 - - [02/Mar/2002:00:08:29 -0800] "216.99.209.191 GET /modules/newbb/images/red_folder.gif HTTP/1.1" 304 - mod_gzip: DECLINED:EXCLUDED In:0 Out:-pct.
192.168.1.1 - - [02/Mar/2002:00:08:32 -0800] "216.99.209.191 GET /modules/news/submit.php HTTP/1.1" 200 40925 mod_gzip: RECOVERY In:0 Out:-pct.
192.168.1.1 - - [02/Mar/2002:00:08:34 -0800] "216.99.209.191 GET /modules/contact/ HTTP/1.1" 200 12779 mod_gzip: RECOVERY In:0 Out:-pct.
192.168.1.1 - - [02/Mar/2002:00:08:36 -0800] "216.99.209.191 GET /modules/newbb/ HTTP/1.1" 200 39122 mod_gzip: RECOVERY In:0 Out:-pct.
192.168.1.1 - - [02/Mar/2002:00:08:37 -0800] "216.99.209.191 GET /modules/polls/ HTTP/1.1" 200 11344 mod_gzip: RECOVERY In:0 Out:-pct.
192.168.1.1 - - [02/Mar/2002:00:08:39 -0800] "216.99.209.191 GET /modules/memberslist/ HTTP/1.1" 200 19422 mod_gzip: RECOVERY In:0 Out:-pct.

Here is the output of mod_gzip_command_version http://216.99.209.191/gzip_ver
« Last Edit: March 02, 2002, 08:30:38 PM by David » Logged

David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:HELP: mod_gzip
« Reply #1 on: March 03, 2002, 07:37:05 AM »
Reply with quote

I got it to work.  It turns out it was working all along but my logging was wrong making it look like it didn't work.
Logged

Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  HELP: mod_gzip « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.012 seconds with 20 queries.