]> git.openstreetmap.org Git - chef.git/commitdiff
Tile: add /status + /dirty rewrite support
authorGrant Slater <git@firefishy.com>
Tue, 18 Jun 2013 04:56:31 +0000 (05:56 +0100)
committerGrant Slater <git@firefishy.com>
Tue, 18 Jun 2013 04:56:31 +0000 (05:56 +0100)
cookbooks/tile/templates/default/apache.erb

index 024c664be31aab0fba894057df06a40be62d90e1..2f2488232c1da2ec87b8aace5771f03bcec54abf 100644 (file)
   # Enable the rewrite engine
   RewriteEngine on
 
+  # Rewrite tile status or tile dirty requests to default style
+  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]
+
   # Rewrite tile requests to the default style
   RewriteRule ^/(-?\d+)/(-?\d+)/(-?\d+)\.png$ /default/$1/$2/$3.png [PT,T=image/png,L]
 </VirtualHost>