# mod_gzip configuration for apache
#
# Zoidial, Inc.
# Eric Thern eric NOSPAM(at) zoidial.com
# April 2002
#
#
# installation notes:
# make sure you change the /tmp file location
# as well as the log locations
#
# make sure to rotate the modgzip.log file somehow
# (unless you love very large logs)
#
#
# This one is for a RaQ server
#
mod_gzip_on yes
mod_gzip_dechunk yes
mod_gzip_keep_workfiles no
mod_gzip_temp_dir /home/tmp
mod_gzip_minimum_file_size 300
mod_gzip_maximum_file_size 0
mod_gzip_maximum_inmem_size 1000000
mod_gzip_can_negotiate yes
mod_gzip_item_include file \.htm$
mod_gzip_item_include file \.shtm$
mod_gzip_item_include file \.html$
mod_gzip_item_include file \.php$
mod_gzip_item_include mime "application/x-httpd-php.*"
mod_gzip_item_include mime ^httpd/unix-directory$
mod_gzip_item_include mime text/.*
mod_gzip_item_include mime audio/.*
mod_gzip_item_include mime video/.*
mod_gzip_item_include mime image/.*
mod_gzip_item_include handler ^perl-script$
mod_gzip_item_include handler ^server-status$
mod_gzip_item_include handler ^server-info$
mod_gzip_item_include handler "jserv-servlet"
mod_gzip_item_exclude file "\.css$"
mod_gzip_item_exclude file "\.js$"
mod_gzip_item_exclude file "\.wml$"
#
# Netscape 4.x and 4.0x has broken gzip support
# so we have to exclude them here
#
mod_gzip_item_exclude reqheader User-Agent:.*Mozilla\/4\.[1-9]
mod_gzip_item_exclude reqheader User-Agent:.*Mozilla\/4\.0[0-9]
#
# on cobalt RaQ systems...
# have to exclude these files for authorizations to work
#
mod_gzip_item_exclude file authorizationRequired.html
mod_gzip_item_exclude file fileNotFound.html
mod_gzip_item_exclude file internalServerError.html
mod_gzip_item_exclude file forbidden.html
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 /home/log/httpd/modgzip.log common_with_mod_gzip_info2
#
# This one is for the FreeBSD Systems
#
mod_gzip_on yes
mod_gzip_dechunk yes
mod_gzip_keep_workfiles No
mod_gzip_temp_dir /var/tmp
mod_gzip_minimum_file_size 300
mod_gzip_maximum_file_size 0
mod_gzip_maximum_inmem_size 1000000
mod_gzip_can_negotiate yes
mod_gzip_item_include file \.htm$
mod_gzip_item_include file \.shtm$
mod_gzip_item_include file \.html$
mod_gzip_item_include file \.php$
mod_gzip_item_include mime "application/x-httpd-php.*"
mod_gzip_item_include mime ^httpd/unix-directory$
mod_gzip_item_include mime "jserv-servlet"
mod_gzip_item_include mime text/.*
mod_gzip_item_include mime audio/.*
mod_gzip_item_include mime video/.*
mod_gzip_item_include mime image/.*
mod_gzip_item_include handler ^perl-script$
mod_gzip_item_include handler ^server-status$
mod_gzip_item_include handler ^server-info$
mod_gzip_item_include handler "jserv-servlet"
mod_gzip_item_exclude file "\.css$"
mod_gzip_item_exclude file "\.js$"
mod_gzip_item_exclude file "\.wml$"
#
# Netscape 4.x and 4.0x has broken gzip support
# so we have to exclude them here
#
mod_gzip_item_exclude reqheader User-Agent:.*Mozilla\/4\.[1-9]
mod_gzip_item_exclude reqheader User-Agent:.*Mozilla\/4\.0[0-9]
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 common_with_mod_gzip_info2