问题描述
我正在使用 Haproxy 将 https 与不同的域设置分开,但有时它会使用相同的 url 转到错误的服务器,但是当我编写测试 python 脚本以每秒 100 次发送 https 请求时,它无法重现错误情况。有什么想法吗?
测试网址:
https://web1.abc.com:8080(有时一些请求会进入 web2)
https://web2.abc.com:8080(有时一些请求会转到 web1)
frontend http_https_8080
mode tcp
bind *:8080
tcp-request inspect-delay 30s
tcp-request content accept if HTTP
use_backend http_server if HTTP
default_backend local_https_server
backend http_server
mode tcp
tcp-request content accept if { req_ssl_hello_type 1 }
tcp-request inspect-delay 30s
#domain agent
use-server web1 if { hdr_dom(Host) -i web1.abc.com }
use-server web2 if { hdr_dom(Host) -i web2.abc.com }
server web1 10.10.10.10:8080
server web2 10.10.10.11:8083
frontend local_https_9443
mode tcp
bind *:9443 ssl crt /etc/haproxy.pem
default_backend http_server
backend local_https_server
mode tcp
option ssl-hello-chk
server localhttps localhost:9443
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)