From 40ecb25e75ca86a6fd07a924e7b600986ce808d4 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Fri, 2 Oct 2020 13:42:36 -0700 Subject: [PATCH] proxies / reverseproxy / candidate-registery: redirect top level to catalog See: https://pagure.io/fedora-infrastructure/issue/8507 Currently https://candidate-registry.fedoraproject.org/ just gives you a blank page. So instead lets redirect to the catalog to at least show something to people. Signed-off-by: Kevin Fenzi --- .../templates/reversepassproxy.candidate-registry.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/httpd/reverseproxy/templates/reversepassproxy.candidate-registry.conf b/roles/httpd/reverseproxy/templates/reversepassproxy.candidate-registry.conf index 38eefdfbdd..f004e4764d 100644 --- a/roles/httpd/reverseproxy/templates/reversepassproxy.candidate-registry.conf +++ b/roles/httpd/reverseproxy/templates/reversepassproxy.candidate-registry.conf @@ -3,6 +3,9 @@ RequestHeader set X-Scheme https early RequestHeader set X-Forwarded-Proto https early ProxyPreserveHost On +# redirect the top / level to the catalog. +Redirect / https://candidate-registry.fedoraproject.org/v2/_catalog + ProxyPass {{ localpath }} {{ proxyurl }}{{remotepath}} ProxyPassReverse {{ localpath }} {{ proxyurl }}{{remotepath}}