Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I enable mod_Gzip on Apache 2.2.17?

I'm working on windows7 64bit env.How should I enable gzip module on apache 2.2.17? And what are differences between mod_deflate and mod_gzip? thanks

like image 241
Sarah Ogbonna Avatar asked Jun 10 '11 09:06

Sarah Ogbonna


Video Answer


1 Answers

You can enable it like this in your apache config file, or .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

like image 199
Karl-Bjørnar Øie Avatar answered Sep 21 '22 18:09

Karl-Bjørnar Øie