# will always work and can be cached
Header set Access-Control-Allow-Origin "*"
+ # Add diagnostics header to identify render server
+ Header set X-TileRender "<%= node[:hostname] %>"
+
# Remove Proxy request header to mitigate https://httpoxy.org/
RequestHeader unset Proxy early
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
# will always work and can be cached
Header set Access-Control-Allow-Origin "*"
+ # Add diagnostics header to identify render server
+ Header set X-TileRender "<%= node[:hostname] %>"
+
# Remove Proxy request header to mitigate https://httpoxy.org/
RequestHeader unset Proxy early
# Redirect to https
RewriteCond %{REQUEST_URI} !^/server-status$
+ RewriteCond %{REQUEST_URI} !^/mod_tile$
RewriteRule (.*) https://%{SERVER_NAME}/$1 [R=permanent,L]
</VirtualHost>