Skip to content

Commit

Permalink
Allow serving of html versions of cached attachments by Apache, as we…
Browse files Browse the repository at this point in the history
…ll as the originals.
  • Loading branch information
crowbot committed Aug 30, 2012
1 parent 109ce98 commit 2163455
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/httpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2163455

Please sign in to comment.