/[sysadmin-cookbook]/recepies/apache2/deflate.conf
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /recepies/apache2/deflate.conf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 154 - (hide annotations)
Mon Nov 2 15:39:50 2009 UTC (14 years, 6 months ago) by dpavlin
File size: 740 byte(s)
Apache2 configuration to deflate all content

1 dpavlin 154 # /etc/apache2/conf.d/deflate.conf
2    
3     <IfModule mod_deflate.c>
4     AddOutputFilterByType DEFLATE text/html text/plain text/xml
5    
6     SetOutputFilter DEFLATE
7     SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
8     SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary
9     SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary
10    
11     BrowserMatch ^Mozilla/4 gzip-only-text/html
12     BrowserMatch ^Mozilla/4\.0[678] no-gzip
13     BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
14    
15     DeflateFilterNote Input input_info
16     DeflateFilterNote Output output_info
17     DeflateFilterNote Ratio ratio_info
18     LogFormat '"%r" %{output_info}n/%{input_info}n (%{ratio_info}n%%)' deflate
19     CustomLog /var/log/apache2/deflate.log deflate
20     </IfModule>

  ViewVC Help
Powered by ViewVC 1.1.26