diff options
author | Louise Crow <louise.crow@gmail.com> | 2012-08-16 18:21:25 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2012-08-16 18:21:25 +0100 |
commit | e3887f042ba1309985e58ce553de0de05227dc56 (patch) | |
tree | 3c7869e8bc9b0a63eb4d1274417c137a53c12ac6 | |
parent | 6c8af1b86a8d0585118017ac44074ff33ca1a11f (diff) |
Re-adding the serving of cached attachments direct from Apache.
-rw-r--r-- | config/httpd.conf | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/httpd.conf b/config/httpd.conf index b4d389d4b..6428a2006 100644 --- a/config/httpd.conf +++ b/config/httpd.conf @@ -41,9 +41,9 @@ RewriteRule /files/(.+) http://files.whatdotheyknow.com/$1 # # The condition means that the rule will fire only if the cached # file exists. -# RewriteMap escape int:escape -# RewriteCond %{DOCUMENT_ROOT}/views_cache/request/$2/$1/${escape:$3} -f -# RewriteRule ^/request/((\d{1,3})\d*)/(response/\d+/attach/\d+/.+) /views_cache/request/$2/$1/${escape:$3} [L] +RewriteMap escape int:escape +RewriteCond %{DOCUMENT_ROOT}/views_cache/request/$2/$1/${escape:$3} -f +RewriteRule ^/request/((\d{1,3})\d*)/(response/\d+/attach/\d+/.+) /views_cache/request/$2/$1/${escape:$3} [L] <IfModule mod_passenger.c> # Set this to something like 100 if you have memory leak issues |