我是靠谱客的博主 自信御姐,这篇文章主要介绍haproxy image跳转 haproxy匹配 匹配到了就停止,不会继续往下匹配,现在分享给大家,希望可以做个参考。

<pre name="code" class="html">/***第一种
nginx 配置:
     location / {
            root /var/www/zjzc-web-frontEnd;
            index  index.html;
        }

zjtest7-frontend:/var/www/zjzc-web-frontEnd/images# pwd
/var/www/zjzc-web-frontEnd/images
zjtest7-frontend:/var/www/zjzc-web-frontEnd/images# ls
3.png

http://192.168.32.76:8001/images/3.png



haproxy:


    acl            image_req                path_beg                -i                      /images
        use_backend     imageserver_8001          if                      image_req


        backend imageserver_8001
                mode            http
        balance         roundrobin
        server          webhost01_8001          192.168.32.76:8001     check inter 2000 fall 3 weight 20


haproxy 如果有这行就不行
  #acl             url_static_zjdev        path_end                                            .html .gif .png .jpg .css .js 注释掉这行

/*******************
frontend we

最后

以上就是自信御姐最近收集整理的关于haproxy image跳转 haproxy匹配 匹配到了就停止,不会继续往下匹配的全部内容,更多相关haproxy内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(115)

评论列表共有 0 条评论

立即
投稿
返回
顶部