From 0a44cc46283d6cac2fcddf52be06239ae844586b Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Fri, 2 Oct 2020 14:42:19 -0700 Subject: [PATCH] proxies / candidate registry: use Rewrite instead of Redirect Signed-off-by: Kevin Fenzi --- .../templates/reversepassproxy.candidate-registry.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/httpd/reverseproxy/templates/reversepassproxy.candidate-registry.conf b/roles/httpd/reverseproxy/templates/reversepassproxy.candidate-registry.conf index f004e4764d..745bb98900 100644 --- a/roles/httpd/reverseproxy/templates/reversepassproxy.candidate-registry.conf +++ b/roles/httpd/reverseproxy/templates/reversepassproxy.candidate-registry.conf @@ -3,8 +3,9 @@ RequestHeader set X-Scheme https early RequestHeader set X-Forwarded-Proto https early ProxyPreserveHost On +RewriteEngine on # redirect the top / level to the catalog. -Redirect / https://candidate-registry.fedoraproject.org/v2/_catalog +RewriteRule ^/$ https://%{SERVER_NAME}/v2/_catalog [R] ProxyPass {{ localpath }} {{ proxyurl }}{{remotepath}} ProxyPassReverse {{ localpath }} {{ proxyurl }}{{remotepath}}