From ad42559a18b5fa74f265fed70c5342840e361f07 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 10 Jun 2014 13:52:39 +0100 Subject: [PATCH] Beat apache round the head until it gives in --- cookbooks/nominatim/templates/default/apache.erb | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.43.2