|
Blue Forest http://www.lslnet.com at 19:08 on May 28, 2006
Output compression website using Apache 2.0.x+mod_deflate Mod_deflate module in Apache 2.0.x can use the same compression as Apache 1.3.x/mod_gzip website output, and the results are equally matched, the installation and configuration is very simple.
Installation, the installation of the Apache 2.0.x, adding --enable-deflate option in the installation option, then compiler installation.
Allocation in httpd.conf to add the following provision :
SetOutputFilter DEFLATE
DeflateFilterNote ratio
SetEnvIfNoCase Request_URI \. (?:gif|jpe?g|png) $ No-gzip dont-vary
SetEnvIfNoCase Request_URI \. (?:exe|t?gz|zip|bz2|sit|rar) $ No-gzip dont-vary
SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary
Or
DeflateFilterNote ratio
AddOutputFilterByType DEFLATE text/*
AddOutputFilterByType DEFLATE application/ms* application/vnd* application/postscript
Almost role in the allocation of the two methods, the main purpose of the document is to prohibit unnecessary compression compression.
Set up after the test, the same website in the documents before the compression ratio compression byte count substantial reduction in network transmission time has been shortened a lot. |
| |