]> git.openstreetmap.org Git - chef.git/commitdiff
Use RewriteRule for ACME redirect on gps-tile
authorTom Hughes <tom@compton.nu>
Wed, 7 Feb 2018 14:33:30 +0000 (14:33 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 7 Feb 2018 14:33:30 +0000 (14:33 +0000)
cookbooks/gps-tile/templates/default/apache.erb

index 064d5628449b8b9987951bdf6feb22f1641c2a8c..adc7a061d049c3d1bb82283aa293359677ec94dd 100644 (file)
@@ -44,7 +44,7 @@
   RewriteEngine On
 
   # Redirect for ACME challenge validation
-  RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
+  RewriteRule ^/\.well-known/acme-challenge/(.*)$ http://acme.openstreetmap.org/.well-known/acme-challenge/$1 [R=permanent,L]
 
   # Redirect to https
   RewriteRule (.*) https://%{SERVER_NAME}/$1 [R=permanent,L]