X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/80e13a7d8d736da2cf26cf044116b015c00c9b33..57d7cd3ecda47266cc08d7e97b13e606405eb2a8:/cookbooks/gps-tile/templates/default/apache.erb diff --git a/cookbooks/gps-tile/templates/default/apache.erb b/cookbooks/gps-tile/templates/default/apache.erb index 064d56284..9adf707dd 100644 --- a/cookbooks/gps-tile/templates/default/apache.erb +++ b/cookbooks/gps-tile/templates/default/apache.erb @@ -23,7 +23,7 @@ RedirectPermanent /gps-lines/tile /lines # Setup logging - CustomLog /var/log/apache2/access.log combined + CustomLog /var/log/apache2/access.log combined_extended ErrorLog /var/log/apache2/error.log BufferedLogs on @@ -44,13 +44,13 @@ 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] # Setup logging - CustomLog /var/log/apache2/access.log combined + CustomLog /var/log/apache2/access.log combined_extended ErrorLog /var/log/apache2/error.log BufferedLogs on