X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/b7579691793f64a2cc7fd86930ed33ffcde88b98..a4d04a4891133e5b8e623c316dc2147f1b333ae9:/cookbooks/web/templates/default/apache.frontend.erb?ds=inline
diff --git a/cookbooks/web/templates/default/apache.frontend.erb b/cookbooks/web/templates/default/apache.frontend.erb
index d82b7e1da..627bf6ec0 100644
--- a/cookbooks/web/templates/default/apache.frontend.erb
+++ b/cookbooks/web/templates/default/apache.frontend.erb
@@ -136,7 +136,12 @@
RailsEnv production
PassengerMinInstances 10
PassengerMaxRequests 5000
+ PassengerMaxRequestQueueSize 250
+<% if port == 443 -%>
+ PassengerPreStart https://www.openstreetmap.org/
+<% else -%>
PassengerPreStart http://www.openstreetmap.org/
+<% end -%>
SetEnv SECRET_KEY_BASE <%= @secret_key_base %>
Alias /favicon.ico <%= node[:web][:base_directory] %>/rails/app/assets/images/favicon.ico
Alias /openlayers <%= node[:web][:base_directory] %>/rails/vendor/assets/openlayers
@@ -193,9 +198,15 @@
#
ProxySet lbmethod=bybusyness
+<% if port == 443 -%>
+ BalancerMember https://rails1 disablereuse=on
+ BalancerMember https://rails2 disablereuse=on
+ BalancerMember https://rails3 disablereuse=on
+<% else -%>
BalancerMember http://rails1
BalancerMember http://rails2
BalancerMember http://rails3
+<% end -%>
<% if port == 80 -%>
@@ -298,7 +309,6 @@
RedirectPermanent /events.ics http://calendar.openstreetmap.org.uk/events.ics
RedirectPermanent / http://www.openstreetmap.org/
-<% if node[:lsb][:release].to_f >= 14.04 -%>
/rails/public>
Require all granted
@@ -323,4 +333,3 @@
Require all granted
-<% end -%>