06-13-2013 09:12 AM
Hi All,
Could anybody advice how would you match a url that includes = sign under an http class-map?
Regards,
Nilesh
06-13-2013 09:37 AM
Basically I need to block any url that contains name=internal for example as below
/ajax/summary/records?check=jQuery88_170&full=true&number=3&name=internal&area=GB&_=1
and
/ajax/summary/records?check=jQuery67_02&full=true&number=5&name=internal&area=ASIA&_=1
Regards,
Nilesh
06-14-2013 06:47 AM
Hi Nilesh,
To block the name=interval you would need to do two things.
1) create an http parameter map where you would need to do "parsing non-strict" in order to involve "=" character.
2) Use the following regex match value:
parameter-map type http test=
case-insensitive
persistence-rebalance
parsing non-strict
class-map type http loadbalance match-all test=
2 match http url .*name\=interval.*
policy-map type loadbalance http first-match PL7
class test=
serverfarm 22
policy-map multi-match test
class VIP-10
loadbalance vip inservice
loadbalance policy PL7
loadbalance vip icmp-reply
appl-parameter http advanced-options test=
Read the link for the parsing non-strict.
Hope this helps.
Regards,
Abhishek Purohit
CCIE-S- 35269
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide