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 064d562..adc7a06 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]