http://techgage.com/article/enabling_and_testing_ssd_trim_support_under_linux/2
[sysadmin-cookbook] / recepies / apache2 / deflate.conf
1 # /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>