]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tile/templates/default/apache.erb
Try tile rewrites before status and dirty requests
[chef.git] / cookbooks / tile / templates / default / apache.erb
index 2f2488232c1da2ec87b8aace5771f03bcec54abf..ba3b704c6e2f0d1c337b195de3d8ed23d66b0d38 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>