X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/0970d9770176c7dd94e6e8ad56925c66439537b9..ad42559a18b5fa74f265fed70c5342840e361f07:/cookbooks/nominatim/templates/default/apache.erb?ds=sidebyside
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