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

Haproxy not switching backends by using path_reg

$
0
0

@egozkan wrote:

Hello all,

I want to use different backends by using regex but it is not working as expected. My configuration like as shown below.

acl cons path_reg ^/(test)/([a-z-0-9]+/){0,1}$
use_backend consistent if cons

For example, this config should work like this:

https://domain.com/test --> should switch to consistent backend
https://domain.com/test/?a=1 --> should not switch to consistent backend but to default

how can i get it?

Thanks

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4731

Trending Articles



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