Differences

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

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
apache [2005/07/02 10:09]
193.77.104.168 created
apache [2006/11/22 00:40]
a
Line 1: Line 1:
-<Location /> +====== Apache ======
- # Insert filter +
- SetOutputFilter DEFLATE+
  
- #DeflateFilterNote ratio +===== optimization ===== 
- #DeflateCompressionLevel 9 +  - **disable DNS Look Up** 
- # Netscape 4.x has some problems... +  - **MaxClients** ( 512 ) 
- BrowserMatch ^Mozilla/4 gzip-only-text/html+  **KeepAlive** 
 +     * Disable KeepAlive connections (by setting KeepAlive to Off) 
 +     * Shorten the KeepAliveTimeout value to something like 3 seconds for instances), reducing the maximum simultaneous opened connections to 768 
 +  **Compress HTTP Content**
  
- # Netscape 4.06-4.08 have some more problems +===== mod_deflate (Apache2) =====
- BrowserMatch ^Mozilla/4\.0[678] no-gzip+
  
- # MSIE masquerades as Netscape, but it is fine +also see: [[http://www.howtoforge.com/apache2_mod_deflate|HowtoForce - ModDeflate]], [[http://pflanze.mine.nu/~chris/mod_deflate/mod_deflate_readme_EN.html|mod_deflate]] 
- # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html +  <Location /> 
- +   # Insert filter 
- # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48 +   SetOutputFilter DEFLATE 
- # the above regex won't work. You can use the following +   
- # workaround to get the desired effect: +   #DeflateFilterNote ratio 
- BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html +   #DeflateCompressionLevel 9 
- +   # Netscape 4.x has some problems... 
- # Don't compress images +   BrowserMatch ^Mozilla/4 gzip-only-text/html 
- 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 +   # Netscape 4.06-4.08 have some more problems 
- SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary +   BrowserMatch ^Mozilla/4\.0[678] no-gzip 
- +   
- # Make sure proxies don't deliver the wrong content +   # MSIE masquerades as Netscape, but it is fine 
- Header append Vary User-Agent env=!dont-vary +   # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html 
-</Location>+   
 +   # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48 
 +   # the above regex won't work. You can use the following 
 +   # 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