]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/web/templates/default/apache.frontend.erb
Gently turn the dial up on the replica DB.
[chef.git] / cookbooks / web / templates / default / apache.frontend.erb
index 1a3f9cfa3830cf2f66118b6f26fff56e61a6c0c3..9657d88a63602e14b59aabc96552bd56612e7b19 100644 (file)
   #
   RequestHeader set X-Request-Id %{UNIQUE_ID}e
 
+  #
+  # Remove Proxy request header to mitigate https://httpoxy.org/
+  #
+  RequestHeader unset Proxy early
+
   #
   # Block troublesome GPX data scrapping
   #
   #
   <Proxy balancer://backend>
     ProxySet lbmethod=bybusyness
-<% node[:web][:backends].each do |backend| -%>
+<% (node[:web][:backends] + ["rails4.bm", "rails5.bm"]).each do |backend| -%>
 <% if port == 443 -%>
     BalancerMember https://<%= backend %> disablereuse=on
 <% else -%>