Score:0

HAProxy mixture of wildcard and specific url's to different backends

fr flag

I have the following two frontend configuration statements in HAProxy.

acl auth_domain hdr(host) -m reg -i ^auth\.web\.simoncarr\.co\.uk$
acl k8s_domain hdr(host) -m reg -i ^[^\.]+\.web\.simoncarr\.co\.uk$

The first line checks for the specific domain auth.web.simoncarr.co.uk, the second checks for *.web.simoncarr.co.uk

Individually they both work fine, but I if both are included and no matter what order, the wildcard always wins.

Is it possible to do this?

Score:1
fr flag

I found the solution by editing my wild card as below.

acl k8s_domain hdr(host) -m reg -i ^(?!auth)[^\.]+\.web\.simoncarr\.co\.uk$
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.