]> git.openstreetmap.org Git - chef.git/commitdiff
Restore redirect from http://openstreetmap.org to https://openstreetmap.org
authorTom Hughes <tom@compton.nu>
Tue, 2 Oct 2018 21:26:17 +0000 (22:26 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 2 Oct 2018 21:26:17 +0000 (22:26 +0100)
This is necessary for HSTS preload - we cannot redirect directly
to the www.openstreetmap.org name!

cookbooks/web/templates/default/apache.frontend.erb

index b40d3774d3c48a4866823c990f0e2e0e7895e22c..27a1b79b0760b8da0c593cbb831fe0a616eb0599 100644 (file)
   RewriteRule ^/\.well-known/acme-challenge/(.*)$ http://acme.openstreetmap.org/.well-known/acme-challenge/$1 [R=permanent,L]
 
   RewriteCond %{REQUEST_URI} !^/server-status$
   RewriteRule ^/\.well-known/acme-challenge/(.*)$ http://acme.openstreetmap.org/.well-known/acme-challenge/$1 [R=permanent,L]
 
   RewriteCond %{REQUEST_URI} !^/server-status$
-  RewriteRule ^(.*)$ https://www.openstreetmap.org$1 [L,NE,R=permanent]
+  RewriteRule ^(.*)$ https://openstreetmap.org$1 [L,NE,R=permanent]
 </VirtualHost>
 
 <VirtualHost *:443>
 </VirtualHost>
 
 <VirtualHost *:443>