Exempt /server-status from redirection on tile servers
authorTom Hughes <tom@compton.nu>
Fri, 23 Feb 2018 08:28:15 +0000 (08:28 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 23 Feb 2018 08:28:15 +0000 (08:28 +0000)
cookbooks/tile/templates/default/apache.erb

index ef4ee9f147e512665da88be25b7207055724e4ed..f2e52cfe68745dab9859e5f812d2798ea38d41dd 100644 (file)
@@ -92,6 +92,7 @@
   RewriteRule ^/\.well-known/acme-challenge/(.*)$ http://acme.openstreetmap.org/.well-known/acme-challenge/$1 [R=permanent,L]
 
   # Redirect to https
+  RewriteCond %{REQUEST_URI} !^/server-status$
   RewriteRule (.*) https://%{SERVER_NAME}/$1 [R=permanent,L]
 </VirtualHost>