How do i enable deflate on apache2? debian

Posted by acidzombie24 on Server Fault See other posts from Server Fault or by acidzombie24
Published on 2010-07-10T11:01:28Z Indexed on 2011/01/11 4:55 UTC
Read the original article Hit count: 265

Filed under:
|
|

I looked at the other answers and those solutions did not help.

I am completely confused how to do this. I know almost nothing about apache nor how to use it and nearly all the article say write this but doesnt tell me where.

So far i have done this

# a2enmod deflate
Module deflate already enabled

Then i tried writing this in httpd.conf

AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css

Then i wrote a longer version which involved deflate.c. After those didnt work i deleted them all and wrote the AddOutputFilterByType line in apache2/sites-enabled/000-default inside of

I used this to test http://www.whatsmyip.org/http_compression/

everytime it says no compression. I used another site but i could never compress. Also i restart the server everytime i save a file so what could be the problem and how do i enable this properly?

© Server Fault or respective owner

Related posts about apache

Related posts about debian