# BandWidth all 8952
# bw_module:
#BandWidthModule
BandWidthModule On
#BandWidthPulse
# BandWidthPulse 1000
#BandWidth , rate in Bytes/sec,
BandWidth all 8952
# Set a maximal (in bytes/sec) to use when transfering a file of KBytes or more.
# LargeFileLimit 100 4476
#Set a minimal bandwidth to use for transfering data.
MinBandWidth all 64
#Bandwidthpacket size in bytes
BandWidthPacket 1024
#Restrict the number of maximum simultanous connections.
MaxConnection all 50
# for /tmp/apachebw, /tmp/apachebw/link, /tmp/apachebw/master
# BandWidthDataDir /tmp/apachebw
################################################################
# mod_deflate:
# Compress everything except images
# Insert filter
SetOutputFilter DEFLATE
SetInputFilter DEFLATE
# Netscape 4.x has some problems...
BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip
# MSIE masquerades as Netscape, but it is fine
# BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
# the above regex won't work. You can use the following
# workaround to get the desired effect:
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
# Don't compress images
SetEnvIfNoCase Request_URI \
\.(?:gif|jpe?g|png)$ no-gzip dont-vary
# Make sure proxies don't deliver the wrong content
#Header append Vary User-Agent env=!dont-vary
#Header append Vary User-Agent
#Header set Vary *
#DeflateFilterNote Input instream
#DeflateFilterNote Output outstream
#DeflateFilterNote Ratio ratio
#
#LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate
#CustomLog logs/deflate_log deflate
#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
#AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddOutputFilterByType DEFLATE text/html text/plain text/xml .php
AddOutputFilter DEFLATE php
###############################################################
# mod_cache, mod_disk_cache, mod_mem_cache:
#LoadModule disk_cache_module /usr/lib/apache2-prefork/mod_disk_cache.so
#
#CacheRoot /tmp/cacheroot
#CacheSize 256
#CacheEnable disk /
#CacheDirLevels 5
#CacheDirLength 3
#
#LoadModule mem_cache_module /usr/lib/apache2-prefork/mod_mem_cache.so
#CacheEnable mem /
#MCacheSize 4096
#MCacheMaxObjectCount 100
#MCacheMinObjectSize 1
#MCacheMaxObjectSize 2048
###############################################################
# mod_gzip:
mod_gzip_on Yes
mod_gzip_can_negotiate Yes
#mod_gzip_static_suffix .gz
AddEncoding gzip .gz
#mod_gzip_update_static No
mod_gzip_command_version '/mod_gzip_status'
#mod_gzip_temp_dir /tmp/apache/gzip
mod_gzip_keep_workfiles No
mod_gzip_minimum_file_size 500
mod_gzip_maximum_file_size 500000
mod_gzip_maximum_inmem_size 60000
mod_gzip_min_http 1001
#mod_gzip_handle_methods GET POST
## EXCLUDED FILETYPES ##
mod_gzip_item_exclude reqheader "User-agent: Mozilla/4.0[678]"
#mod_gzip_item_include file \.html$
mod_gzip_item_exclude file \.js$
mod_gzip_item_exclude file \.pk3$
mod_gzip_item_exclude file \.mp3$
mod_gzip_item_exclude file \.avi$
mod_gzip_item_exclude file \.mpg$
#mod_gzip_item_exclude file \.css$
mod_gzip_item_exclude mime ^image/
####
## INCLUDED FILETYPES ##
mod_gzip_item_include file \.pl$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/html$
mod_gzip_item_include mime ^text/plain$
mod_gzip_item_include mime ^httpd/unix-directory$
mod_gzip_item_include mime ^application/x-httpd-php$
mod_gzip_item_include mime ^application/x-httpd-php-source$
####
mod_gzip_dechunk Yes
LogFormat "%h %l %u %t \"%V %r\" %