X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/29be45d12023e4f60db03cdade5924642113cfa6..4c87577cb2b3d35abd3c833c88ad18ddcd64b3b0:/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 206d54c07..ef06eeb83 100644
--- a/cookbooks/web/templates/default/apache.frontend.erb
+++ b/cookbooks/web/templates/default/apache.frontend.erb
@@ -14,6 +14,7 @@
# Enable SSL
#
SSLEngine on
+ SSLProxyEngine on
<% end -%>
#
@@ -136,6 +137,7 @@
PassengerMinInstances 10
PassengerMaxRequests 5000
PassengerPreStart http://www.openstreetmap.org/
+ 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
Alias /stats /store/rails/stats
@@ -191,9 +193,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 -%>
@@ -222,12 +230,6 @@
RewriteRule ^(.*)$ http://www.openstreetmap.org$1 [L,NE,R=permanent]
<% elsif port == 443 -%>
- #
- # Redirect requests which don't work over https to http
- #
- RewriteCond %{REQUEST_URI} ^/edit$
- RewriteRule ^(.*)$ http://www.openstreetmap.org$1 [L,NE,R=permanent]
-
#
# Redirect api requests made to www.osm.org to api.osm.org
#
@@ -275,6 +277,8 @@
ServerAlias maps.open-maps.org mapz.open-maps.org
ServerAlias open-maps.com www.open-maps.com
ServerAlias maps.open-maps.com mapz.open-maps.com
+ ServerAlias osmbugs.org www.osmbugs.org
+ ServerAlias maps.osmbugs.org mapz.osmbugs.org
#Third Party Sites
ServerAlias openstreetmap.pm www.openstreetmap.pm
@@ -282,6 +286,15 @@
RedirectPermanent / http://www.openstreetmap.org/
+
+ ServerName openstreetmap.org
+ ServerAlias maps.openstreetmap.org mapz.openstreetmap.org
+
+ SSLEngine on
+
+ RedirectPermanent / https://www.openstreetmap.org/
+
+
ServerName openstreetmap.org.uk
ServerAlias www.openstreetmap.org.uk
@@ -291,3 +304,27 @@
RedirectPermanent /events.ics http://calendar.openstreetmap.org.uk/events.ics
RedirectPermanent / http://www.openstreetmap.org/
+
+/rails/public>
+ Require all granted
+
+
+
+ Require all granted
+
+
+
+ Require all granted
+
+
+
+ Require all granted
+
+
+
+ Require all granted
+
+
+
+ Require all granted
+