aboutsummaryrefslogtreecommitdiff
path: root/htaccess_dist
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-11 12:35:16 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-11 12:35:16 +0000
commit461454b7d766ea8cfa406830aae79d7c7cea64a1 (patch)
treeba583317c55f938d2a85a458137c86577c5c1265 /htaccess_dist
parent239008a518145ca40c5dea980b4aa2db9cb802bb (diff)
downloadelgg-461454b7d766ea8cfa406830aae79d7c7cea64a1.tar.gz
elgg-461454b7d766ea8cfa406830aae79d7c7cea64a1.tar.bz2
Turned on mod_gzip if available
git-svn-id: https://code.elgg.org/elgg/trunk@2438 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'htaccess_dist')
-rw-r--r--htaccess_dist22
1 files changed, 22 insertions, 0 deletions
diff --git a/htaccess_dist b/htaccess_dist
index 762aa8d78..91e0797cd 100644
--- a/htaccess_dist
+++ b/htaccess_dist
@@ -54,6 +54,28 @@ ExpiresDefault "access plus 10 years"
php_value display_errors 0
</IfModule>
+# Turn on mod_gzip if available
+<IfModule mod_gzip.c>
+ mod_gzip_on yes
+ mod_gzip_dechunk yes
+ mod_gzip_keep_workfiles No
+ mod_gzip_temp_dir /tmp
+ mod_gzip_minimum_file_size 1002
+ mod_gzip_maximum_file_size 1000000
+ mod_gzip_maximum_inmem_size 1000000
+ mod_gzip_item_include file \.htm$
+ mod_gzip_item_include file \.html$
+ mod_gzip_item_include file \.php$
+ mod_gzip_item_include mime ^text/.*
+ mod_gzip_item_include mime ^application/x-httpd-php
+ mod_gzip_item_include mime ^httpd/unix-directory$
+ mod_gzip_item_exclude file "\.css$"
+ mod_gzip_item_exclude file "\.js$"
+ mod_gzip_item_exclude file "\.wml$"
+ mod_gzip_item_exclude reqheader "User-Agent: .*Mozilla/4\..*\["
+ mod_gzip_item_exclude mime ^image/.gif
+</IfModule>
+
<IfModule mod_rewrite.c>
RewriteEngine on