From bd24d3069ceeedfc315ddc39bcb57b0e78647400 Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Sat, 16 Feb 2019 17:36:18 -0500 Subject: [PATCH] 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 --- roles/tripleo-image-serve/templates/image-serve.conf.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/tripleo-image-serve/templates/image-serve.conf.j2 b/roles/tripleo-image-serve/templates/image-serve.conf.j2 index 39f2039ca..0f0707cd4 100644 --- a/roles/tripleo-image-serve/templates/image-serve.conf.j2 +++ b/roles/tripleo-image-serve/templates/image-serve.conf.j2 @@ -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 # This assumes a file exists containing {} at