]> git.openstreetmap.org Git - chef.git/commitdiff
Send http://openstreetmap.org redirects via https://openstreetmap.org
authorTom Hughes <tom@compton.nu>
Thu, 31 May 2018 15:07:28 +0000 (16:07 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 31 May 2018 15:07:28 +0000 (16:07 +0100)
cookbooks/web/templates/default/apache.frontend.erb

index 326418d8df8ed60ff0566da7e9f2d896337d40d9..402d4209d01f39004fa696e2f07498e9b73bfaba 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>