Merge "Disable image-serve MultiViews" into stable/victoria

This commit is contained in:
Zuul 2021-12-13 22:50:37 +00:00 committed by Gerrit Code Review
commit 882daa434e
1 changed files with 19 additions and 0 deletions

View File

@ -22,6 +22,25 @@ Listen {{ tripleo_container_registry_port }}
Header set Docker-Distribution-Api-Version registry/2.0
</Directory>
# LP#1953198 / rhbz#2026654
<LocationMatch "^/v2/.*/.*/manifests/(?!sha256:).*$">
Options FollowSymLinks
AllowOverride None
AddHandler type-map .type-map
RewriteEngine On
ReWriteCond %{REQUEST_URI} !(\.json|\.type-map)$
RewriteRule ^(.*) $1.type-map [PT,L]
</LocationMatch>
<LocationMatch "^/v2/.*/manifests/(?!sha256:).*$">
Options FollowSymLinks
AllowOverride None
AddHandler type-map .type-map
RewriteEngine On
ReWriteCond %{REQUEST_URI} !(\.json|\.type-map)$
RewriteRule ^(.*) $1.type-map [PT,L]
</LocationMatch>
<LocationMatch "^/v2/.*/.*/blobs/sha256:.*$">
SetEnvIf Request_URI "sha256:(.*)$" digest=sha256:$1
Header set Docker-Content-Digest "%{digest}e"