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

Req.ssl_sni does not seem to work with -f

$
0
0

in the examples for backend routing theres a specific example

use_backend bk_allow if { req.ssl_sni -f allowed_sites }

however when i place individual uri in a file allowed_sites one per line as suggested they all get ignored completely and routing goes to the default backend.

allowed_sites contents:
site1.example.com
site2.example.com
site1.otherexample.com

IF i instead specify the rule like this:
use_backend bk_allow if { req.ssl_sni site1.example.com site2.example.com site1.otherexample.com }

then everything works as expected.

i have a lsirt of about 40 sites id like to route to a single backend this way so was hoping to be able to use -f as per the example.

What am i missing?

1 post - 1 participant

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>