mod_gzip のインストール
2002-08-09-1
- 入手
http://sourceforge.net/projects/mod-gzip/
- インストール
/usr/local/apache/bin/apxs -i -a -c mod_gzip.c
- 設定
LoadModule gzip_module libexec/mod_gzip.so
AddModule mod_gzip.c
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_keep_workfiles No
mod_gzip_minimum_file_size 1002
mod_gzip_maximum_file_size 0
mod_gzip_maximum_inmem_size 60000
mod_gzip_dechunk Yes
mod_gzip_temp_dir "/tmp"
mod_gzip_item_include mime "application/x-httpd-cgi"
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 "\.shtml$"
mod_gzip_item_include file "\.htm$"
mod_gzip_item_include file "\.html$"
mod_gzip_item_include file "\.php$"
mod_gzip_item_include file "\.php3$"
mod_gzip_item_include file "\.pl$"
mod_gzip_item_include file "\.cgi$"
mod_gzip_item_exclude file "\.css$"
mod_gzip_item_exclude file "\.js$"
mod_gzip_item_exclude mime "image/.*"
mod_gzip_min_http 1001
</IfModule>