DocumentRoot /srv/web/ostree

RewriteEngine On

RewriteRule "^/objects/([a-f0-9]{2})/([a-f0-9]{62})\.commitmeta$" https://d2uk5hbyrobdzx.cloudfront.net/objects/$1/$2.commitmeta
RewriteRule "^/iot/objects/([a-f0-9]{2})/([a-f0-9]{62})\.commitmeta$" https://d2ju0wfl996cmc.cloudfront.net/objects/$1/$2.commitmeta

RewriteCond %{HTTP:X-Amz-Cf-Id} !^$
RewriteRule ^/summary - [F]

RewriteCond %{HTTP:X-Amz-Cf-Id} !^$
RewriteRule ^/refs - [F]
