|
From: Micah Y. <yo...@ho...> - 2001-11-03 00:39:45
|
should have followed up to the list. He got it working. Relevant details:
> What is the best way to compile mod_gzip into apache?
this should do it (adapted from my notes):
copy mod_gzip.c into Apache/src/modules/extra/
Apache directory:
./configure
mod_perl Directory:
perl Makefile.PL APACHE_SRC=/home/micah/source/apache_1.3.20 DO_HTTPD=1
USE_APACI=1 PERL_MARK_WHERE=1 EVERYTHING=1
make
make install
Apache directory:
./configure --prefix=/usr/local/apache
--activate-module=src/modules/perl/libperl.a
--activate-module=src/modules/extra/mod_gzip.o
make
make install
in the main httpd.conf file include all this:
=====
# Mod_gzip
mod_gzip_on Yes
mod_gzip_minimum_file_size 300
mod_gzip_maximum_file_size 0
mod_gzip_maximum_inmem_size 100000
mod_gzip_item_include file \.htm$
mod_gzip_item_include file \.html$
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_exclude mime ^image/.*
mod_gzip_item_exclude file \.rdf$
mod_gzip_dechunk yes
mod_gzip_temp_dir /tmp
mod_gzip_keep_workfiles No
===============
and in EACH Slash <VirtualHost> include this:
==============
mod_gzip_item_exclude reqheader Content-Type:multipart/form-data
mod_gzip_item_exclude reqheader
Content-Type:application/x-www-form-urlencoded
==============
The last one is all in one line. It's necessary because there's a bug in
POST operations under gzip and mod_perl, so they need to be disabled.
--
Like to travel? http://TravTalk.org
Micah Yoder Internet Development http://yoderdev.com
|