我是靠谱客的博主 认真小白菜,最近开发中收集的这篇文章主要介绍[WARNING] 004/210853 (21313) : config : 'option forwardfor' ignored for proxy 'allmycat_service'login frontend which proxys to the backends harbor loginround robin balancing between the various backendsround robin balancing between the various backen,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

1.经过调查,

2down voteaccepted
x-forwarded-for is an HTTP header field, so has nothing to do with the transport layer (TCP). Usually web proxies insert the x-forwarded-for data.

直接把# option forwardfor except 127.0.0.0/8
注释掉重启就行。
2.front和backend
#---------------------------------------------------------------------
frontend main *:5000
mode tcp
acl url_static path_beg -i /static /images /javascript /stylesheets
acl url_static path_end -i .jpg .gif .png .css .js

use_backend app if url_static
default_backend app

#---------------------------------------------------------------------

login frontend which proxys to the backends harbor login

#---------------------------------------------------------------------
frontend harbor_login
bind *:4430
mode tcp
option tcplog
default_backend harbor_login

#---------------------------------------------------------------------

round robin balancing between the various backends

#---------------------------------------------------------------------
backend app
mode tcp
balance roundrobin
server app1 172.16.6.50:5000 check

#---------------------------------------------------------------------

round robin balancing between the various backends

#---------------------------------------------------------------------
backend harbor_login
balance roundrobin
mode tcp
server harbor_login 172.16.6.50:443 check

最后

以上就是认真小白菜为你收集整理的[WARNING] 004/210853 (21313) : config : 'option forwardfor' ignored for proxy 'allmycat_service'login frontend which proxys to the backends harbor loginround robin balancing between the various backendsround robin balancing between the various backen的全部内容,希望文章能够帮你解决[WARNING] 004/210853 (21313) : config : 'option forwardfor' ignored for proxy 'allmycat_service'login frontend which proxys to the backends harbor loginround robin balancing between the various backendsround robin balancing between the various backen所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

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

评论列表共有 0 条评论

立即
投稿
返回
顶部