使用场景ad存在两个虚拟服务,服务端口分别为80和443。 配置方法
1. 创建两个虚拟服务,分别为80/443
2. 资源管理-自定义内容 - <div>HTTP/1.1 307 Temporary Redirect</div><div>Cache-Control: no-cache, no-store, must-revalidate</div><div>Pragma: no-cache</div><div>Expires: 0</div><div>Content-Type: text/html; charset=utf-8</div><div>Location: https://${host}${uri}</div>
复制代码
3. 创建前置策略,匹配host,引用返回自定义内容
4. 80虚拟服务调用改前置策略即可 |