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

Multiple and/or conditions for rules

$
0
0

In my setup, I have the following section:

use_backend checkout if site-type-1 paths
use_backend checkout if site-type-1 referer
use_backend checkout if site-type-1 queries

As you can see, the first condition of the two in each line is always the same, whereas the second condition changes. Is there a way of rewriting this more efficiently into a single line so that it keeps the first condition constant and applies an OR to the second conditions? Or, put another way: so that the rule processes if we have site-type-1 plus any one of paths, referer, or queries?

Thanks!

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>