projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9c59de
)
Restore redirect from http://openstreetmap.org to https://openstreetmap.org
author
Tom Hughes
<tom@compton.nu>
Tue, 2 Oct 2018 21:26:17 +0000
(22:26 +0100)
committer
Tom 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
patch
|
blob
|
history
diff --git
a/cookbooks/web/templates/default/apache.frontend.erb
b/cookbooks/web/templates/default/apache.frontend.erb
index b40d3774d3c48a4866823c990f0e2e0e7895e22c..27a1b79b0760b8da0c593cbb831fe0a616eb0599 100644
(file)
--- a/
cookbooks/web/templates/default/apache.frontend.erb
+++ b/
cookbooks/web/templates/default/apache.frontend.erb
@@
-278,7
+278,7
@@
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>