How to enable mod_Gzip in Apache 2.2.17?

I am working on windows7 64bit env. How to enable gzip module on apache 2.2.17? And what are the differences between mod_deflate and mod_gzip? thank

+5
source share
4 answers

You can enable it this way in the apache configuration file or in the .htaccess file, if enabled

<IfModule mod_deflate.c>
  AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript application/json
</IfModule>

See: http://httpd.apache.org/docs/2.0/mod/mod_deflate.html

+13
source

Apache 2.2x mod_gzip, Apache 1.3x. Apache 2.2x mod_deflate. GZip - DEFLATE / . . , Deflate .

+9

mod_deflate Apache, httpd.conf ( ):

LoadModule deflate_module modules/mod_deflate.so

httpd.conf:

SetOutputFilter DEFLATE 
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript

, : http://httpd.apache.org/docs/2.2/mod/mod_deflate.html

+9

, mod_filter, mod_deflate (- , ):

LoadModule filter_module modules/mod_filter.so
LoadModule deflate_module modules/mod_deflate.so

: httpd.conf:

SetOutputFilter DEFLATE 
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript

: Apache/2.4.10

: mod_filter 2.4, 2.2 .

+6

All Articles