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 [2008/05/11 11:23]
greebo
Line 1: Line 1:
-<Location /> +====== Apache ====== 
- # Insert filter +==== utils ==== 
- SetOutputFilter DEFLATE+   * vlogger: http://n0rp.chemlab.org/vlogger 
 +   * webalizer: http://www.mrunix.net/webalizer
  
- #DeflateFilterNote ratio 
- #DeflateCompressionLevel 9 
- # Netscape 4.x has some problems... 
- BrowserMatch ^Mozilla/4 gzip-only-text/html 
  
- # Netscape 4.06-4.08 have some more problems +===== optimization ===== 
- BrowserMatch ^Mozilla/4\.0[678] no-gzip+  **disable DNS Look Up** 
 +  - **MaxClients** ( 512 ) 
 +  - **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**
  
- # MSIE masquerades as Netscape, but it is fine +===== mod_deflate (Apache2) =====
- # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html+
  
- # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48 +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]] 
- # the above regex won't work. You can use the following +  <Location /> 
- # workaround to get the desired effect: +   # Insert filter 
- BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html +   SetOutputFilter DEFLATE 
- +   
- # Don't compress images +   #DeflateFilterNote ratio 
- SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary +   #DeflateCompressionLevel 9 
- SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary +   # Netscape 4.x has some problems... 
- SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary +   BrowserMatch ^Mozilla/4 gzip-only-text/html 
- +   
- # Make sure proxies don't deliver the wrong content +   # Netscape 4.06-4.08 have some more problems 
- Header append Vary User-Agent env=!dont-vary +   BrowserMatch ^Mozilla/4\.0[678] no-gzip 
-</Location>+   
 +   # MSIE masquerades as Netscape, but it is fine 
 +   # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html 
 +   
 +   # 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>
  
  
Line 33: Line 50:
 deflate.load deflate.load
 header.load header.load
 +
 +
 += SSL =
 +http://www.mail-archive.com/modssl-users@modssl.org/msg10790.html\\
 +
 +ssl.conf\\
 +#SSLSessionCache         shmcb:/var/run/apache2/ssl_scache(512000)\\
 +SSLSessionCache         dbm:/var/run/apache2/ssl_scache\\
 +SSLSessionCacheTimeout  300\\
 +
 +
  
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