From 833b7bf1d2b6e3a650920c629a1ed47edd745982 Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 9 Mar 2009 12:09:14 +0000 Subject: Refs #823: Mod_deflate htaccess def now disabled by default. git-svn-id: https://code.elgg.org/elgg/trunk@3138 36083f99-b078-4883-b0ff-0f9b5a30f544 --- htaccess_dist | 35 +++++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 14 deletions(-) (limited to 'htaccess_dist') diff --git a/htaccess_dist b/htaccess_dist index 9e6c40beb..1c876ee12 100644 --- a/htaccess_dist +++ b/htaccess_dist @@ -72,21 +72,28 @@ DirectoryIndex index.php mod_gzip_item_exclude mime ^image/.* -# Apache2 deflate support if available - - AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/x-javascript - BrowserMatch ^Mozilla/4 gzip-only-text/html - BrowserMatch ^Mozilla/4\.[0678] no-gzip - BrowserMatch \bMSIE !no-gzip - Header append Vary User-Agent env=!dont-vary +## Apache2 deflate support if available +## +## Important note: This is commented out by default as the Header definition (required for correct functioning +## through proxy servers) causes an internal server error on some versions of Apache2. Other installations work fine, +## your mileage may vary. +## +## Further details here: http://trac.elgg.org/elgg/ticket/823 +## +# +# AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/x-javascript +# BrowserMatch ^Mozilla/4 gzip-only-text/html +# BrowserMatch ^Mozilla/4\.[0678] no-gzip +# BrowserMatch \bMSIE !no-gzip +# Header append Vary User-Agent env=!dont-vary - # The following is to disable compression for actions. The reason being is that these - # may offer direct downloads which (since the initial request comes in as text/html and headers - # get changed in the script) get double compressed and become unusable when downloaded by IE. - SetEnvIfNoCase Request_URI action\/* no-gzip dont-vary - SetEnvIfNoCase Request_URI actions\/* no-gzip dont-vary - - +# # The following is to disable compression for actions. The reason being is that these +# # may offer direct downloads which (since the initial request comes in as text/html and headers +# # get changed in the script) get double compressed and become unusable when downloaded by IE. +# SetEnvIfNoCase Request_URI action\/* no-gzip dont-vary +# SetEnvIfNoCase Request_URI actions\/* no-gzip dont-vary +# +# # Configure ETags -- cgit v1.2.3