image-serve: redirect root to /v2

Nobody needs to see the default apache page, let's just redirect to v2
so operators aren't confused.

Change-Id: I465bcf9358bf85dd8e7f4bd199b5dcee703b8ab4
This commit is contained in:
Emilien Macchi 2019-02-16 17:36:18 -05:00 committed by Martin André
parent fe8dd5c907
commit bd24d3069c
1 changed files with 1 additions and 0 deletions

View File

@ -5,6 +5,7 @@ Listen {{ container_registry_port }}
ServerSignature Off
CustomLog "/var/log/httpd/image_serve_access.log" combined
SetEnvIf X-Forwarded-Proto https HTTPS=1
RedirectMatch ^/$ /v2
<Directory {{ image_data_dir }}>
# This assumes a file exists containing {} at