X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/781339f82377ca12b2ad13ba4b922f5d3028aaf8..ad42559a18b5fa74f265fed70c5342840e361f07:/cookbooks/nominatim/templates/default/apache.erb
diff --git a/cookbooks/nominatim/templates/default/apache.erb b/cookbooks/nominatim/templates/default/apache.erb
index 3d47b428f..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