From: Tom Hughes Date: Tue, 10 Jun 2014 12:52:39 +0000 (+0100) Subject: Beat apache round the head until it gives in X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/ad42559a18b5fa74f265fed70c5342840e361f07 Beat apache round the head until it gives in --- diff --git a/cookbooks/nominatim/templates/default/apache.erb b/cookbooks/nominatim/templates/default/apache.erb index 3eae1357a..8203cf1e5 100644 --- a/cookbooks/nominatim/templates/default/apache.erb +++ b/cookbooks/nominatim/templates/default/apache.erb @@ -52,11 +52,19 @@ <% end -%> +<% if node[:lsb][:release].to_f >= 14.04 -%> Redirect 429 /pool-block/ ErrorDocument 429 /509.html ErrorDocument 429 /509.html +<% else -%> + Redirect 420 /pool-block/ + ErrorDocument 420 /509.html + + ErrorDocument 420 /509.html + +<% end -%> Redirect 403 /pool-ban/ ErrorDocument 403 /403.html