Question about mod_deflate and deflate.conf

Discussion in 'Installation/Configuration' started by schmidtedv, Jul 29, 2008.

  1. schmidtedv

    schmidtedv Member HowtoForge Supporter

    Well, I followed your howto and enabled mod_deflate on my debian etch. Only question is where to put my config globally. I thought, I might be doing a good job putting it into /etc/apache2/mods_enabled/deflate.con, so it looks like this:

    Code:
    <IfModule mod_deflate.c>
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4.0[678] no-gzip
    BrowserMatch bMSIE !no-gzip !gzip-only-text/html
    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
    </IfModule>
    
    If that's correct, is it a good ruleset for a don't worry about-config?
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Should work and looks good. :)
     
  3. schmidtedv

    schmidtedv Member HowtoForge Supporter

    :) thx...you got my pm (you knew about the book)?
     

Share This Page