KEMP Loadmaster Content rules Regex - OR operator in Matching string

0

Hello, I am trying Host matching rules to forward all to one host, except x.domain.com and y.domain.com.

Can I use rule Negate, Ignore Case   Content Matching Regex

Host header Hoset

Match string (x.domain.com|y.domain,.com)

Negation - selected

for some reason does not work...

Thanks

4 comments

Avatar
0
Mark Deegan

Hi Daniyar,

Create a VIP with 2 SUB-VS's and enable content matching

Create 2 content matching rules, 1 for the domains specified and the other a catch all rule.

On the first VS apply the first rule that specifies the domain in question

On the second VS use the catch all rule

Ensure rule precedence has the domain rule above the domain matching rule.

Add the real servers to the sub-VS's

here is some information on rules

https://support.kemptechnologies.com/hc/en-us/articles/203125019-Content-Rules

regards

Mark

 

Avatar
0
daniyar.satkhanov

Thanks Mark, certainly this is the way to go, 

but I am curious about more complex regex, as you know if we will need to create many hosts, and the real servers behind, then it can be quote long vertically, if there is an elegant way to combine all  hosts in one long horisontal rule it can be quite interesting feature.

Dan

 

Avatar
0
Mark Deegan

Hello Dan.

At the moment there is no way to add them all to one rule. You could submit a feature request using the link below. This will go to our dev team and they will look at the feasibility of getting it in a future release.

https://support.kemptechnologies.com/hc/en-us/community/topics/200047268-Feature-Requests

Regards

Mark

Avatar
0
Mark Deegan

Hello Dan,

Would you be interested in working with our dev team on possibly getting this feature advanced?

regards

Mark