+<% (node[:web][:backends] + ["rails4.bm", "rails5.bm"]).each do |backend| -%>
+<% if port == 443 -%>
+ BalancerMember https://<%= backend %> disablereuse=on
+<% else -%>
+ BalancerMember http://<%= backend %>
+<% end -%>
+<% end -%>
+ </Proxy>
+
+ #
+ # Define a load balancer for the Bytemark backends
+ #
+ <Proxy balancer://bytemark>
+ ProxySet lbmethod=bybusyness
+<% ["rails4.bm", "rails5.bm"].each do |backend| -%>