X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/3dc447a5e3c9637b6f999475ad7d572eec8877cf..a4d04a4891133e5b8e623c316dc2147f1b333ae9:/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 8ca71d9a4..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 @@ -194,9 +199,9 @@ ProxySet lbmethod=bybusyness <% if port == 443 -%> - BalancerMember https://rails1 - BalancerMember https://rails2 - BalancerMember https://rails3 + BalancerMember https://rails1 disablereuse=on + BalancerMember https://rails2 disablereuse=on + BalancerMember https://rails3 disablereuse=on <% else -%> BalancerMember http://rails1 BalancerMember http://rails2 @@ -304,9 +309,27 @@ 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 + Require all granted + + + + Require all granted + + + + Require all granted + + + + Require all granted + + + + Require all granted + + + + Require all granted -<% end -%>