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
用一个例子来演示会更加清晰
服务器托管,北京服务器托管,服务器租用 http://www.fwqtg.net
机房租用,北京机房租用,IDC机房托管, http://www.fwqtg.net
引言 上一篇文章,主要讲解的是如何使用DBeaver连接Impala数据库,本篇文章主要讲解的是DBeaver的日常实用操作,也是《DBeaver水滴石穿》这系列的最后一篇文章,兄弟让我们动起来! 1、断开或重新连接 当使用DBeaver连接数据库时,由于长时…