diff options
Diffstat (limited to 'htaccess_dist')
-rw-r--r-- | htaccess_dist | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/htaccess_dist b/htaccess_dist index 48129d0f9..3d1ef070b 100644 --- a/htaccess_dist +++ b/htaccess_dist @@ -4,8 +4,8 @@ # Link http://elgg.org/ <Files "htaccess_dist"> - order allow,deny - deny from all + order allow,deny + deny from all </Files> # Don't listing directory @@ -31,7 +31,7 @@ DirectoryIndex index.php php_value register_globals 0 # max post size to 8Mb php_value post_max_size 8388608 - # upload size limit to 5Mb + # upload size limit to 5Mb php_value upload_max_filesize 5242880 # hide errors, enable only if debug enabled php_value display_errors 0 @@ -40,17 +40,17 @@ DirectoryIndex index.php # 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_minimum_file_size 1000 - mod_gzip_maximum_file_size 1000000 - mod_gzip_maximum_inmem_size 1000000 - mod_gzip_item_include mime ^text/.* - mod_gzip_item_include mime ^application/javascript$ - mod_gzip_item_include mime ^application/x-javascript$ - # Exclude old browsers and images since IE has trouble with this - mod_gzip_item_exclude reqheader "User-Agent: .*Mozilla/4\..*\[" - mod_gzip_item_exclude mime ^image/.* + mod_gzip_dechunk yes + mod_gzip_keep_workfiles No + mod_gzip_minimum_file_size 1000 + mod_gzip_maximum_file_size 1000000 + mod_gzip_maximum_inmem_size 1000000 + mod_gzip_item_include mime ^text/.* + mod_gzip_item_include mime ^application/javascript$ + mod_gzip_item_include mime ^application/x-javascript$ + # Exclude old browsers and images since IE has trouble with this + mod_gzip_item_exclude reqheader "User-Agent: .*Mozilla/4\..*\[" + mod_gzip_item_exclude mime ^image/.* </IfModule> ## Apache2 deflate support if available @@ -63,16 +63,16 @@ DirectoryIndex index.php BrowserMatch ^Mozilla/4\.[0678] no-gzip BrowserMatch \bMSIE !no-gzip -<IfModule mod_headers.c> +<IfModule mod_headers.c> Header append Vary User-Agent env=!dont-vary -</IfModule> - +</IfModule> + # 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 - + </IfModule> # Configure ETags @@ -86,7 +86,7 @@ RewriteEngine on # If Elgg is in a subdirectory on your site, you might need to add a RewriteBase line # containing the path from your site root to elgg's root. e.g. If your site is -# http://example.com/ and Elgg is in http://example.com/sites/elgg/, you might need +# http://example.com/ and Elgg is in http://example.com/sites/elgg/, you might need # #RewriteBase /sites/elgg/ # |