# 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]
# 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]
# Restrict tile access to CDN nodes and admins
<LocationMatch ^/default/\d+/\d+/\d+\.png$>
Require expr "%{CONN_REMOTE_ADDR} != %{REMOTE_ADDR}"
# Restrict tile access to CDN nodes and admins
<LocationMatch ^/default/\d+/\d+/\d+\.png$>
Require expr "%{CONN_REMOTE_ADDR} != %{REMOTE_ADDR}"
<% @statuscake.sort.reject { |address| address.empty? }.each do |address| -%>
Require ip <%= address %>
<% end -%>
<% @statuscake.sort.reject { |address| address.empty? }.each do |address| -%>
Require ip <%= address %>
<% end -%>