beautypg.com

Case-insensitive match for content switching, Wildcards in csw rules for url prefixes – Brocade Virtual ADX Server Load Balancing Guide (Supporting ADX v03.1.00) User Manual

Page 265

background image

Brocade Virtual ADX Server Load Balancing Guide

249

53-1003247-01

Layer 7 content switching

5

Case-insensitive match for content switching

With Case-Insensitive Match for content switching (CSW you can optionally specify a CSW-rule or
CSW-policy to be case insensitive and the consequent match ignores case for the input.

The following example shows how to configure a case-insensitive rule.

Virtual ADX(config)#csw-rule r1 url pattern /test/index.html case-insensitive

Syntax: csw-rule rule-name url | header | method | xml-tag pattern pattern-to-match

[case-insensitive]

The case-insensitive option specifies the pattern match to be case insensitive.

The following example shows how to configure a case-insensitive policy.

Virtual ADX(config)#csw-policy p1 case-insensitive

Syntax: csw-policy policy-name [case-insensitive]

The case-insensitive option specifies that this policy is case-insensitive.

NOTE

You cannot mix case-insensitive policy and case-sensitive rules, or vice versa.

Wildcards in CSW rules for URL prefixes

Wildcards in CSW rules for URL prefixes behave as described for the following CSW rule:

csw-rule "pages0" url prefix "/pages/0*"

In this case, "/pages/0*" does not match on " /pages/0". It would only match on URLs such as
"/pages/01" and "/pages/011119011", where the URL is at least one byte longer that the part of
the rule before the asterisk.

XML Tag
Equals

Matches if the
contents of the
specified XML
tag are equal to
the specified
value.

[no] csw-rule rule-name xml-tag
tag-name equals value

csw-rule r1 xml-tag "name"

equals "george"

XML Tag
Search

Matches if the
specified XML
tag contains any
one of up to five
specified values.
This type of rule
can be used with
the persist
action.

[no] csw-rule rule-name xml-tag
tag-name search value

csw-rule r1 xml-tag "name"

search "geo"

csw-rule r1 xml-tag "name"

search "edw"

TABLE 25

XML tag rules for Layer 7 content switching (Continued)

XML tag rule
name

Description

Syntax

Example