proxies / candidate registry: use Rewrite instead of Redirect
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
40ecb25e75
commit
0a44cc4628
1 changed files with 2 additions and 1 deletions
|
@ -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}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue