Http Compression

Discussion in 'Server Operation' started by pcotter, Dec 27, 2006.

  1. pcotter

    pcotter New Member

    Hi!
    Can someone tell me how to enable http compression in apache?

    I did the "Installing A LAMP System With Fedora Core 6", but i don't know how to enable http compression.
    Thanks.
     
  2. Ben

    Ben ISPConfig Developer ISPConfig Developer

  3. pcotter

    pcotter New Member

    Thanks for helping Ben, I am a little lost with Apache Http compression. What is the difference between mod_deflate (http://httpd.apache.org/docs/2.0/mod/mod_deflate.html) and mod_gzip? And the big question is how do i implement it and what module? I am completely new in Apache and Linux, i came from a little different world (IIS), and trying cheaper solutions!
    I have both dynamic and static web pages.

    Thanks
     
  4. falko

    falko Super Moderator ISPConfig Developer

  5. pcotter

    pcotter New Member

    Thank you Falko... Ahhh!!! light at the end of the tunnel!!!;)
     
  6. pcotter

    pcotter New Member

    Thats what i added in my /ect/httpd/conf/httpd.conf Section 1: Global Environment:
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE image/svg+xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/atom_xml
    AddOutputFilterByType DEFLATE application/x-javascript
    AddOutputFilterByType DEFLATE application/x-httpd-php
    AddOutputFilterByType DEFLATE application/x-httpd-fastphp
    AddOutputFilterByType DEFLATE application/x-httpd-eruby
    AddOutputFilterByType DEFLATE text/html

    Is that ok? Since i did not ad any directive for images or other already compressed file (like zip and tar.gz), will apache compress such files?
    Thanks again!
     
  7. falko

    falko Super Moderator ISPConfig Developer

    It will compress only the content types you specified, so it should be ok. :)
     

Share This Page