Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
apache [2008/09/22 17:36] a |
apache [2012/07/30 20:18] 188.143.232.12 dijjfZhmxGR |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Apache ====== | + | I had the same problem. after fowolling all the advices above , i came across this:# enable resulting |
- | ==== utils ==== | + | |
- | * vlogger: http://n0rp.chemlab.org/ | + | |
- | * webalizer: http:// | + | |
- | + | ||
- | + | ||
- | ===== optimization ===== | + | |
- | - **disable DNS Look Up** | + | |
- | - **MaxClients** ( 512 ) | + | |
- | - **KeepAlive** | + | |
- | * Disable KeepAlive connections (by setting KeepAlive to Off) | + | |
- | * Shorten | + | |
- | - **Compress HTTP Content** | + | |
- | + | ||
- | + | ||
- | ===== mod_deflate (Apache2) ===== | + | |
- | + | ||
- | also see: [[http:// | + | |
- | < | + | |
- | # Insert filter | + | |
- | | + | |
- | + | ||
- | # | + | |
- | # | + | |
- | # Netscape 4.x has some problems... | + | |
- | | + | |
- | + | ||
- | # Netscape 4.06-4.08 have some more problems | + | |
- | | + | |
- | + | ||
- | # MSIE masquerades as Netscape, but it is fine | + | |
- | # BrowserMatch \bMSIE !no-gzip !gzip-only-text/ | + | |
- | + | ||
- | # 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: | + | |
- | | + | |
- | + | ||
- | # Don't compress images | + | |
- | | + | |
- | | + | |
- | | + | |
- | + | ||
- | # Make sure proxies don't deliver the wrong content | + | |
- | Header append Vary User-Agent env=!dont-vary | + | |
- | </Location> | + | |
- | + | ||
- | This configuration will compress everything except for images. Of course, you can’t test this with curl, but you can test it with Firefox and [[https://addons.mozilla.org/ | + | |
- | + | ||
- | + | ||
- | deflate.load | + | |
- | header.load | + | |
- | + | ||
- | + | ||
- | = SSL = | + | |
- | http:// | + | |
- | + | ||
- | ssl.conf\\ | + | |
- | # | + | |
- | SSLSessionCache | + | |
- | SSLSessionCacheTimeout | + | |
- | + | ||
- | + |