From b59d021652f3904cc2b7456140dbadae2e05d5a3 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Wed, 7 Apr 2021 11:20:57 +0800 Subject: [PATCH] =?UTF-8?q?URL=E8=B7=B3=E8=BD=AC=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=8C=B9=E9=85=8D=E5=89=8D=E7=BC=80=E5=92=8C=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E4=BF=9D=E7=95=99RequestURI=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/serverconfigs/http_host_redirect_config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/serverconfigs/http_host_redirect_config.go b/pkg/serverconfigs/http_host_redirect_config.go index 8a8fea1..7ffa0cd 100644 --- a/pkg/serverconfigs/http_host_redirect_config.go +++ b/pkg/serverconfigs/http_host_redirect_config.go @@ -10,6 +10,9 @@ type HTTPHostRedirectConfig struct { BeforeURL string `yaml:"beforeURL" json:"beforeURL"` // 跳转前的地址 AfterURL string `yaml:"afterURL" json:"afterURL"` // 跳转后的地址 + MatchPrefix bool `yaml:"matchPrefix" json:"matchPrefix"` // 只匹配前缀部分 + KeepRequestURI bool `yaml:"keepRequestURI" json:"keepRequestURI"` // 保留请求URI + realBeforeURL string }