Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision Both sides next revision
apache [2005/07/02 10:09]
193.77.104.168 created
apache [2006/06/08 23:45]
a restructured (mod_deflate)
Line 1: Line 1:
-<Location /> +====== Apache ======
- # Insert filter +
- SetOutputFilter DEFLATE+
  
- #DeflateFilterNote ratio +===== mod_deflate (Apache2) =====
- #DeflateCompressionLevel 9 +
- # Netscape 4.x has some problems... +
- BrowserMatch ^Mozilla/4 gzip-only-text/html+
  
- # Netscape 4.06-4.08 have some more problems +also see: [[http://www.howtoforge.com/apache2_mod_deflate|HowtoForce - ModDeflate]] 
- BrowserMatch ^Mozilla/4\.0[678] no-gzip +  <Location /> 
- +   # Insert filter 
- # MSIE masquerades as Netscape, but it is fine +   SetOutputFilter DEFLATE 
- # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html +   
- +   #DeflateFilterNote ratio 
- # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48 +   #DeflateCompressionLevel 9 
- # the above regex won't work. You can use the following +   # Netscape 4.x has some problems... 
- # workaround to get the desired effect: +   BrowserMatch ^Mozilla/4 gzip-only-text/html 
- BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html +   
- +   # Netscape 4.06-4.08 have some more problems 
- # Don't compress images +   BrowserMatch ^Mozilla/4\.0[678] no-gzip 
- SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary +   
- SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary +   # MSIE masquerades as Netscape, but it is fine 
- SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary +   # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html 
- +   
- # Make sure proxies don't deliver the wrong content +   # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48 
- Header append Vary User-Agent env=!dont-vary +   # the above regex won't work. You can use the following 
-</Location>+   # workaround to get the desired effect: 
 +   BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html 
 +   
 +   # Don't compress images 
 +   SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary 
 +   SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary 
 +   SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary 
 +   
 +   # Make sure proxies don't deliver the wrong content 
 +    Header append Vary User-Agent env=!dont-vary 
 +  </Location>
  
  
apache.txt · Last modified: 2012/07/31 12:45 by greebo
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready