X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/48217a85b90d2c4b3378b65206b6c5e2686c2a94..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 aa2aa1d98..71d840c34 100644
--- a/cookbooks/web/templates/default/apache.frontend.erb
+++ b/cookbooks/web/templates/default/apache.frontend.erb
@@ -30,11 +30,6 @@
ExpiresActive On
RewriteEngine on
- #
- # Configure on the fly compression
- #
- AddOutputFilterByType DEFLATE image/svg+xml
-
#
# Add the unique ID to the request headers
#
@@ -179,7 +174,7 @@
# Allow all proxy requests
#
- Allow from all
+ Require all granted
#
@@ -214,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 -%>