mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-02-17 13:15:38 +08:00
URL跳转增加匹配前缀和是否保留RequestURI选项
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user