Exempt /server-status from redirection
authorTom Hughes <tom@compton.nu>
Mon, 22 Jan 2018 19:11:41 +0000 (19:11 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 22 Jan 2018 20:38:21 +0000 (20:38 +0000)
Fixed #144

cookbooks/web/templates/default/apache.frontend.erb

index 2058b7a..a950d77 100644 (file)
   ServerName openstreetmap.org
   ServerAlias *
 
-  RedirectPermanent / https://www.openstreetmap.org/
+  RewriteEngine on
+
+  RewriteCond %{REQUEST_URI} !^/server-status$
+  RewriteRule ^(.*)$ https://www.openstreetmap.org$1 [L,NE,R=permanent]
 </VirtualHost>
 
 <VirtualHost *:443>