X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/29be45d12023e4f60db03cdade5924642113cfa6..798eced00d44bc93a995fcaaae16410ace313b64:/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..a3102d4b9 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 -%> # @@ -191,9 +192,15 @@ # ProxySet lbmethod=bybusyness +<% if port == 443 -%> + BalancerMember https://rails1 + BalancerMember https://rails2 + BalancerMember https://rails3 +<% else -%> BalancerMember http://rails1 BalancerMember http://rails2 BalancerMember http://rails3 +<% end -%> <% if port == 80 -%> @@ -222,12 +229,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 +276,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 +285,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