beautypg.com

Http header rules – Brocade Virtual ADX Server Load Balancing Guide (Supporting ADX v03.1.00) User Manual

Page 263

background image

Brocade Virtual ADX Server Load Balancing Guide

247

53-1003247-01

Layer 7 content switching

5

HTTP header rules

HTTP header rules cause the Brocade Virtual ADX to make a load-balancing decision based on the
contents of an HTTP header field in an incoming packet.

In an Layer 7 content switching configuration, you can configure rules for the following HTTP header
fields: Connection, Transfer-Encoding, Content-Length, Host, Cookie, Pragma, and Cache-Control,
as well as up to 10 other HTTP header fields.

Table 24

lists the HTTP header rules available for Layer 7 content switching.

URL Equals

Matches if the
URL string is
equal to the
specified value.

[no] csw-rule rule-name url
equals value

csw-rule r1 url equals

"/home.html"

URL Search

Matches if the
URL string
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 url
search value

csw-rule r1 url search "srvr1"

csw-rule r1 url search "srvr2"

csw-rule r1 url search "srvr3"

csw-rule r1 url search "srvr4"

csw-rule r1 url search "srvr5"

TABLE 24

HTTP header rules for Layer 7 content switching

HTTP header
rule name

Description

Syntax

Example

Header Exists

Matches if the
specified HTTP
header field exists
in the incoming
packet.

[no] csw-rule rule-name
header header-name
exists

csw-rule r1 header "host" exists

Header Prefix

Matches if the
value in the
specified HTTP
header field
begins with the
specified prefix.

[no] csw-rule rule-name
header header-name
prefix value

csw-rule r1 header "host" prefix

"www"

Header Suffix

Matches if the
value in the
specified HTTP
header field ends
with the specified
suffix.

[no] csw-rule rule-name
header header-name
suffix value

csw-rule r1 header "host" suffix

"com"

Header
Pattern

Matches if the
specified pattern
exists anywhere
within the
specified HTTP
header field.

[no] csw-rule rule-name
header header-name
pattern value

csw-rule r1 header "cookie"

pattern "Serverid"

TABLE 23

URL rules for Layer 7 content switching (Continued)

URL rule
name

Description

Syntax

Example