haproxy acl无法在https/tcp模式下工作

Mar*_*cin 5 haproxy

我遇到了一些问题,似乎我无法在tcp模式下工作,
一切都在http模式下工作.
这是我的配置.

frontend  http *:80
    acl http_test_acl       path_beg    -i /test
    use_backend http_test   if http_test_acl
    default_backend         http_default

backend http_test
    balance   roundrobin
    server    httptest 10.10.10.10:80 check

backend http_default
    balance   roundrobin
    server    httpdefault 10.10.10.10:80 check

############# HTTPS #################
frontend  https *:443
    mode tcp
    acl https_test_acl         path_beg -i /test
    use_backend https_test     if https_test_acl
    default_backend            https_default

backend https_test
    mode tcp
    balance   roundrobin
    server    httpstest 10.10.10.10:443 check

backend https_default
    mode tcp
    balance   roundrobin
    server    httpsdefault 10.10.10.10:443 check
Run Code Online (Sandbox Code Playgroud)

不要注意ip 10.10.10.10,因为我隐藏了我的原始版本.你可以告诉我为什么https无法正常工作,http frontend/backend acl规则工作得很好.

干杯

小智 8

因为您的https服务器处于tcp模式(因为它们应该用于ssl),因此第7层规则不起作用.