mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-11 18:36:53 +08:00
proxies / candidate registry: use Rewrite instead of Redirect
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user