diff options
author | Louise Crow <louise.crow@gmail.com> | 2012-08-30 13:13:29 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2012-08-30 13:13:29 +0100 |
commit | 21634552f96f2686e3b08a5a25dd1805b243c840 (patch) | |
tree | 147d1623f82f72cf1dcbc7fbdb68926fe5ca9712 | |
parent | 109ce98bb7ad871c29186c9d34cbf9a1652dae41 (diff) |
Allow serving of html versions of cached attachments by Apache, as well as the originals.
-rw-r--r-- | config/httpd.conf | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/httpd.conf b/config/httpd.conf index 36f567964..129b1577b 100644 --- a/config/httpd.conf +++ b/config/httpd.conf @@ -43,7 +43,8 @@ RewriteRule /files/(.+) http://files.whatdotheyknow.com/$1 # 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] +RewriteRule ^/request/((\d{1,3})\d*)/(response/\d+/attach/(html/)?\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 |