Redirect registry /latest to /f27 for now

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2017-12-01 19:47:56 +00:00
parent 108f68c590
commit 299dae3384

View file

@ -6,6 +6,8 @@ ProxyPreserveHost On
RewriteEngine on
RewriteRule ^/signatures/(.*) /srv/web/registry-signatures/$1 [L]
RewriteRule ^/v2/latest/(.*) /v2/f27/$1 [R,L]
{% if env == "production" %}
RewriteCond %{HTTP:VIA} !cdn77
RewriteCond %{REQUEST_METHOD} !^(PATCH|POST|PUT|DELETE|HEAD)$