aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2014-12-23 09:21:24 +0000
committerLouise Crow <louise.crow@gmail.com>2014-12-23 09:21:24 +0000
commit65d5a24a1114ddd6edc6585f7ea34e61dde74c8a (patch)
tree3e0f5bd04a12c44cf82f002c163eab6256d3ff9a
parente822e7091e7e0153a68094898847b0793e58dedd (diff)
Add a bit more explanation of the locale-specific bit
-rw-r--r--config/httpd.conf-example7
1 files changed, 6 insertions, 1 deletions
diff --git a/config/httpd.conf-example b/config/httpd.conf-example
index 2f6ca9c75..1a3729f5d 100644
--- a/config/httpd.conf-example
+++ b/config/httpd.conf-example
@@ -34,7 +34,7 @@
# Passenger's default MaxPoolSize is 6. At the time of writing
# normal instances of Alaveteli seem to take 150-200MB per
# process, so we've set this conservatively at 3. Read the guides
- # above to tune this for your system
+ # above to tune this for your system
PassengerMaxPoolSize 3
# The RAILS_ENV that the app is running in. This can be any of
@@ -97,6 +97,11 @@
#
# The condition means that the rule will fire only if the cached
# file exists.
+ #
+ # The second condition-rule pair handles the same transformation for
+ # files served from a non-default locale, 'cy'. You will need one
+ # set of rules for each non-default locale.
+
RewriteMap escape int:escape
RewriteCond %{DOCUMENT_ROOT}/views_cache/request/$2/$1/${escape:$3} -f
RewriteRule ^/request/((\d{1,3})\d*)/(response/\d+/attach/(html/)?\d+/.+) /views_cache/request/$2/$1/${escape:$3} [L]