应用平台 APPSTAGE-SLB实例配置:重写重定向配置

时间:2024-07-24 14:36:06

重写重定向配置

表2 urlResetConf字段说明

参数名

是否必选

说明

transferType

转换类型,为以下枚举值:

  • rewriteGrey 灰度重写
  • rewriteNormal 生产重写
  • redirectGrey 灰度重定向
  • redirectNormal 生产重定向

source

匹配路径,例:/abc/portal/login.jsp(.*)$

target

目标路径,例:/abc/def/$1

slb_instance_config/url_reset_config.yaml #重写重定向配置

- transferType: rewriteNormal               #必填,转发类型,rewriteNormal代表生产重写
  source: /a1                               #必填,匹配路径
  target: /b1                               #必填,目标路径
- transferType: rewriteGrey                 #必填,转发类型,rewriteGrey代表灰度重写
  source: /a2                               #必填,匹配路径
  target: /b2                               #必填,目标路径
support.huaweicloud.com/devg-appstage/appstage_06_0088.html