<pre name="code" class="sql">redirect location <to> [code <code>] <option> [{if | unless} <condition>]redirect prefix <to> [code <code>] <option> [{if | unless} <condition>] 重定向,相当于rewrite###########acl 开始了############ acl bbs hdr_reg(host) -i ^(bbs.test.com|forum.test.com) #使用正则匹配 acl bbs_path path_beg -i /bbs #url 目录 acl youxi path_beg -i /youxi acl static path_end -i .html .css .js #url 结尾文件 acl php path_end -i .php acl jsp path_end -i .jsp .do use_backend bbs_pool if bbs or bbs_path #注意 "or" use_backend youxi_pool if youxi use_backend static_pool if static use_backend php_pool if php use_backend jsp_pool if jsp default_backend www.test.com ###########acl 结束了############ #当满足host_zjcap.cn的策略,跳转(重定向)
haproxy 页面重定向 域名跳转
最新推荐文章于 2022-09-02 10:51:32 发布