[Mod_gzip] apache 2.0.40 and error
Matt Dickinson
mod_gzip@lists.over.net
Mon, 19 May 2003 01:55:04 +0100
mod_gzip-admin@lists.over.net wrote:
>
> stoopid me, never even thought of that. i just let the make program
> do it for me. guess i should not assume it is right :)
> now i just gotta figure out how to get it to work with php.
This is my current config from httpd.conf. make sure in your php.ini you
have the compression stuff turned off.
<IfModule mod_gzip.c>
################# Mod_GZIP ##################
mod_gzip_on Yes
mod_gzip_can_negotiate Yes
mod_gzip_minimum_file_size 100
mod_gzip_maximum_file_size 100000
mod_gzip_maximum_inmem_size 100000
mod_gzip_dechunk Yes
mod_gzip_keep_workfiles No
## I suggest you make /usr/local/apache/gzip and use that instead
mod_gzip_temp_dir /tmp
mod_gzip_item_include file \.html$
mod_gzip_item_include file \.jsp$
mod_gzip_item_include file \.php$
mod_gzip_item_include file \.pl$
mod_gzip_item_include file \.bmp$
mod_gzip_item_include file \.htm$
mod_gzip_item_include file \.swf$
mod_gzip_item_include file \.fla$
mod_gzip_item_include file \.shtml$
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_command_version mod_gzip_show_vertest
#mod_gzip_command_showstats mod_gzip_showstatstest
################# Mod_GZIP ##################
</IfModule>
That's a whole different ball game.
I hacked the source, and got it to stop checking for HAS_CE coz that was
causing me problems, and it was the quickest fix. I did hear of another
solution, but I can't remember it (it's 2am).