X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/82b50eda860cacb73ec72233394cf7cd0bb6bfa5..95e1e4603eb8c32acf8ee58c845ec4ce5bfdd56c:/cookbooks/web/templates/default/apache.frontend.erb?ds=sidebyside diff --git a/cookbooks/web/templates/default/apache.frontend.erb b/cookbooks/web/templates/default/apache.frontend.erb index 0989ea791..71d840c34 100644 --- a/cookbooks/web/templates/default/apache.frontend.erb +++ b/cookbooks/web/templates/default/apache.frontend.erb @@ -47,6 +47,12 @@ RewriteCond %{HTTP_USER_AGENT} tilesAtHome RewriteRule . - [F,L] + # + # Block changeset scraper + # + RewriteCond %{HTTP_USER_AGENT} "OSMApp Tuner" + RewriteRule . - [F,L] + # # Block requests for the old 404 map tile # @@ -168,7 +174,7 @@ # Allow all proxy requests # - Allow from all + Require all granted # @@ -203,14 +209,12 @@ # ProxySet lbmethod=bybusyness +<% node[:web][:backends].each do |backend| -%> <% if port == 443 -%> - BalancerMember https://rails1 disablereuse=on - BalancerMember https://rails2 disablereuse=on - BalancerMember https://rails3 disablereuse=on + BalancerMember https://<%= backend %> disablereuse=on <% else -%> - BalancerMember http://rails1 - BalancerMember http://rails2 - BalancerMember http://rails3 + BalancerMember http://<%= backend %> +<% end -%> <% end -%> <% if port == 80 -%>