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}}