Try tile rewrites before status and dirty requests
authorTom Hughes <tom@compton.nu>
Tue, 18 Jun 2013 17:07:55 +0000 (18:07 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 18 Jun 2013 17:07:55 +0000 (18:07 +0100)
cookbooks/tile/templates/default/apache.erb

index 2f24882..ba3b704 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]
+  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]
 </VirtualHost>
 
 <Directory /srv/tile.openstreetmap.org/html>