1# Integrate staticly generated low-z tiles and dynamically generated high-z tiles 2# provided by Tirex. For this low-z requests are forwarded 1:1 to the file system, 3# high-z requests end up with Tirex via a rewrite rule. 4 5<Directory "/data2/k/osm/htdocs/earth"> 6 Require all granted 7</Directory> 8 9Alias "/earth" "/data2/k/osm/htdocs/earth" 10 11# mod_tile assumes file extensions are consisting only of lower-case letters, while we want them to be "o5m" 12# we achieve that by rewriting the file extension to one we use internally for this ("ofm") 13# However, we must only do that for levels 11 to 17 which are delivered via Tirex, levels 1 to 9 are static 14# and delivered differently. 15 16RewriteEngine on 17RewriteRule ^(.*/vectorosm/v1/\d\d/\d+/\d+)\.o5m$ /tirex$1.ofm [PT] 18RewriteRule ^(.*/vectorosm/dev/\d\d/\d+/\d+)\.o5m$ /tirex$1.ofm [PT] 19