Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
apache [2006/06/08 23:45]
a restructured (mod_deflate)
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 html compressionFor security reasonsmod_php is not used on this server. Use php.ini file for php directives #php_flag zlib.output_compression onMy host is bluehost.So in ~public_html/php.ini , change this line:zlib.output_compression = offtozlib.output_compression onNow it is super fast.Thank you all
- +
-===== mod_deflate (Apache2) ===== +
- +
-also see[[http://www.howtoforge.com/apache2_mod_deflate|HowtoForce - ModDeflate]] +
-  <Location /> +
-   Insert filter +
-   SetOutputFilter DEFLATE +
-   +
-   #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 +
-   BrowserMatch ^Mozilla/4\.0[678] no-gzip +
-   +
-   # MSIE masquerades as Netscapebut it is fine +
-   # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html +
-   +
-   # NOTE: Due to bug in mod_setenvif up to Apache 2.0.48 +
-   the above regex won't workYou 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> +
- +
- +
- +
- +
-deflate.load +
-header.load +
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