Example: Configuring mod_deflate for EnterpriseOne
The following load module line enables compression for EnterpriseOne. Verify that the
line is uncommented in the httpd.conf
file.
LoadModule deflate_module modules/mod_deflate.so
In the httpd.conf
file, add the following lines under the existing
<IfModule mod_deflate.c> section. Note that the compression method used
in this example is explicit exclusion.
For specific instructions to configure the mod_deflate directive, access the Apache
documentation on this web page, http://httpd.apache.org/docs/2.0/
, and click on the link
for http://httpd.apache.org/docs/2.0/mod/directives.html
.
<IfModule mod_deflate.c>
DeflateFilterNote Input instream
DeflateFilterNote Output outstream
DeflateFilterNote Ratio ratio
LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate
CustomLog Z:\IBM\HTTPServer\logs\deflate.log/u01/IBM/HTTPServer/logs/deflate.logdeflate
<Location / >
# Insert filter
SetOutputFilter DEFLATE
# Don't compress images or binaries
SetEnvIfNoCase Request_URI \
\.(?:gif|[jm]pe?g|png|t?gz|bz2*|zip|exe|iso|avi)$ no-gzip dont-vary
</Location>
</IfModule>