]> git.openstreetmap.org Git - chef.git/commitdiff
tile: Drop negative tiles
authorGrant Slater <git@firefishy.com>
Fri, 31 May 2019 16:38:24 +0000 (17:38 +0100)
committerGrant Slater <git@firefishy.com>
Fri, 31 May 2019 16:38:24 +0000 (17:38 +0100)
cookbooks/tile/templates/default/apache.erb

index 52c4ef91bc5f6f05a630f4be9e11b1567578051f..499de564fcb154a79626cff8994ac1b3477efd43 100644 (file)
@@ -47,9 +47,9 @@
   RewriteEngine on
 
   # Rewrite tile requests to the default style
   RewriteEngine on
 
   # Rewrite tile requests to the default style
-  RewriteRule ^/(-?\d+)/(-?\d+)/(-?\d+)\.png$ /default/$1/$2/$3.png [PT,T=image/png,L]
-  RewriteRule ^/(-?\d+)/(-?\d+)/(-?\d+)\.png/status/?$  /default/$1/$2/$3.png/status [PT,T=text/plain,L]
-  RewriteRule ^/(-?\d+)/(-?\d+)/(-?\d+)\.png/dirty/?$   /default/$1/$2/$3.png/dirty  [PT,T=text/plain,L]
+  RewriteRule ^/(\d+)/(\d+)/(\d+)\.png$ /default/$1/$2/$3.png [PT,T=image/png,L]
+  RewriteRule ^/(\d+)/(\d+)/(\d+)\.png/status/?$  /default/$1/$2/$3.png/status [PT,T=text/plain,L]
+  RewriteRule ^/(\d+)/(\d+)/(\d+)\.png/dirty/?$   /default/$1/$2/$3.png/dirty  [PT,T=text/plain,L]
 
   # Historical Files redirect
   RedirectPermanent /processed_p.tar.bz2 https://planet.openstreetmap.org/historical-shapefiles/processed_p.tar.bz2
 
   # Historical Files redirect
   RedirectPermanent /processed_p.tar.bz2 https://planet.openstreetmap.org/historical-shapefiles/processed_p.tar.bz2