HAProxy community

SSL passthrough with acl



Making my first steps with ha proxy. So please be kind to me :slight_smile:

How can i choose which backend to use for a ssl connection?

frontend http-in
        bind *:80 v4v6
        bind *:443 v4v6
        mode tcp

        acl test_site_eu req.ssl_sni -i test.site.eu
        use_backend ssl_server if test_site_eu

backend ssl_server
        mode tcp
        timeout server 30s
        server ssl_server_1

This is not working, but if i remove if from the use_backend statement it kinda does.

http works fine with

acl apache_test_eu hdr(host) -i apache.test.eu