X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/a5b4062176b9c69f22d65e7281c1a924c3a714f2..95e1e4603eb8c32acf8ee58c845ec4ce5bfdd56c:/cookbooks/web/templates/default/apache.frontend.erb
diff --git a/cookbooks/web/templates/default/apache.frontend.erb b/cookbooks/web/templates/default/apache.frontend.erb
index 5c149872e..71d840c34 100644
--- a/cookbooks/web/templates/default/apache.frontend.erb
+++ b/cookbooks/web/templates/default/apache.frontend.erb
@@ -174,7 +174,7 @@
# Allow all proxy requests
#
- Allow from all
+ Require all granted
#
@@ -209,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 -%>