Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4849

Ssl_fc_sni rule not working as expected

$
0
0

I have the following config:

...
frontend https_frontend
    bind *:443 ssl crt /etc/haproxy/certs/ alpn h2,http/1.1

    use_backend backend_one if { ssl_fc_sni one.website.com }
    use_backend backend_two if { ssl_fc_sni two.website.com }
    use_backend backend_three if { ssl_fc_sni three.website.com }

    default_backend not_found_backend

backend backend_one
    server one localhost:7880 check
backend backend_two
    server two localhost:5349 check
backend backend_three
    server three localhost:3200 check
backend not_found_backend
    http-request deny status 404

Full config file: haproxy - Pastebin.com

When I call one.website.com it should have redirected me to backend_one/one. But instead I am seeing it go to backend_three/three.

Logs

https_frontend~ backend_three/three 0/0/0/2/2 404 263 - - ---- 2/2/0/0/0 0/0 "HEAD https://one.website.com/ HTTP/2.0" hdrs:"host: one.website.com

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4849

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>