proxies / candidate registry: use Rewrite instead of Redirect

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2020-10-02 14:42:19 -07:00
parent 40ecb25e75
commit 0a44cc4628

View file

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