Summary
Module mod_deflate specifies compression and decompression functions using filters, MIME types, environment variables, and HTTP responses. Compressed output is transferred to requesting client browsers at a higher rate of speed than uncompressed output. Compression and decompression is implemented by the DEFLATE filter, located in module mod_deflate. See Apache HTTP Server Version 2.0 Documentation for additional information and examples on configuring the Apache server to use compression.
Directives
Module: mod_deflate | |
Syntax: DeflateBufferSize value | |
Default: DeflateBufferSize 8096 | |
Context: server config, virtual host | |
Override: none | |
Origin: Apache | |
Usage Considerations: A LoadModule is required in the configuration file prior to using the directive. The statement should be as follows: deflate_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM | |
Example: DeflateBufferSize 8096 |
The DeflateBufferSize directive specifies the size of the fragments that zlib should compress at one time.
Module: mod_deflate | |
Syntax: DeflateCompressionLevel value | |
Default: DeflateCompressionLevel 6 | |
Context: server config, virtual host | |
Override: none | |
Origin: Apache | |
Usage Considerations: A LoadModule is required in the configuration file prior to using the directive. The statement should be as follows: deflate_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM | |
Example: DeflateCompressionLevel 5 |
The DeflateCompressionLevel directive specifies what level of compression should be used.
Module: mod_deflate | |
Syntax: DeflateFilterNote [type] notename | |
Default: none | |
Context: server config, virtual host | |
Override: none | |
Origin: Apache | |
Usage Considerations: A LoadModule is required in the configuration file prior to using the directive. The statement should be as follows: deflate_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM | |
Example: DeflateFilterNote ratio | |
Example: DeflateFilterNote Ratio ratio | |
Example: DeflateFilterNote Input input | |
Example: DeflateFilterNote input input |
The DeflateFilterNote directive specifies that a note about compression ratios should be attached to the request. The note is used for statistical purposes by adding a value to your access log.
- Parameter Two: notename
- The notename parameter value specifies the note name entered in the log. The notename value is not required to match the type value. Blank characters are not valid.
- Example: accurate logging
DeflateFilterNote Input instream DeflateFilterNote Output outstream DeflateFilterNote Ratio ratio LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate CustomLog logs/deflate_log deflate
Module: mod_deflate | |
Syntax: DeflateMemLevel value | |
Default: DeflateMemLevel 9 | |
Context: server config, virtual host | |
Override: none | |
Origin: Apache | |
Usage Considerations: A LoadModule is required in the configuration file prior to using the directive. The statement should be as follows: deflate_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM | |
Example: DeflateMemLevel 8 |
The DeflateMemLevel directive specifies how much memory should be used for zlib for compression.
Module: mod_deflate | |
Syntax: DeflateWindowSize value | |
Default: DeflateWindowSize 15 | |
Context: server config, virtual host | |
Override: none | |
Origin: Apache | |
Usage Considerations: A LoadModule is required in the configuration file prior to using the directive. The statement should be as follows: deflate_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM | |
Example: DeflateWindowSize 14 |
The DeflateWindowSize directive specifies the zlib compression window size.