- BalancerMember http://rails1
- BalancerMember http://rails2
- #BalancerMember http://rails3
+ 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| -%>
+<% if port == 443 -%>
+ BalancerMember https://<%= backend %> disablereuse=on
+<% else -%>
+ BalancerMember http://<%= backend %>
+<% end -%>