How to configure mod_deflate?

This Comment will be submitted for moderation and will not be accessible to other users until it has been approved.


37 points

Hi All,

I see in httpd.conf that mod_deflate is already enabled on my apache. But, how do I enable it so that my html pages are compressed?

Davy



5 points

Following text in httpd.conf would compress your html files using mod_deflate:

# compress all text & html:
AddOutputFilterByType DEFLATE text/html text/plain text/xml
 
# Or, compress certain file types by extension:
<Files *.html>
SetOutputFilter DEFLATE
</Files>

Anonymous's picture
Created by Anonymous

Post Comment

  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.