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

Help creating content rule from parameter

$
0
0

@Eddiie wrote:

Hello,

I need some help creating acls to branch based off a URL Parameter.

Example: http://www.mysitesample.com/my/site/is/here/myfile.aspx?parameter1=foo&clientid=bar01&index=100

I want to switch send traffic to backend servers matching a range of what “clientid” equals, type is text.
Samples of what clientid can equal: Client01, client01, CLIENT01, cLIENT01, CottageCheese01, Bluesky03 (and all upper/lower case variants), might not be the word client at all. more like the client’s name. The text ‘bar01’ is a sample and not a constant) and the ClientID parameter can appear anywhere in the client list.

say
Client01 through client05 goes to backend 1
Client06 through client10 goes to backend 2
CottageCheese01 or Bluesky03 goes to backend 3
If all else fails, go to backend 4.

Hopefully this explains it.
thank you!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4714

Trending Articles



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