Configuring an http version rule, Url rules – Brocade Virtual ADX Server Load Balancing Guide (Supporting ADX v03.1.00) User Manual
Page 262

246
Brocade Virtual ADX Server Load Balancing Guide
53-1003247-01
Layer 7 content switching
5
This example creates a rule called r1 that matches if an incoming packet contains the PUT method.
Syntax: [no] csw-rule rule-name method eq method-string
The rule-name variable is the name of the rule and can be up to 80 characters in length.
The method-string variable can be GET, HEAD, POST, OPTIONS, PUT, DELETE, TRACE, PROPFIND,
MOVE, CONNECT, BDELETE, PROPPATCH, COPY, LOCK, UNLOCK, MKCOL, BCOPY, BMOVE, POLL,
SUBSCRIBE, SEARCH, BPROPPATCH, RPC_OUT_DATA, or RPC_IN_DATA.
Configuring an HTTP version rule
To set up an HTTP method rule that causes the Brocade Virtual ADX to make a load balancing
decision based on the HTTP version of an incoming packet, enter a command such as the
following.
Virtual ADX(config)#csw-rule r1 version eq 1.1
This example creates a rule called r1 that matches if an incoming packet uses HTTP version 1.1.
Syntax: [no] csw-rule rule-name version eq http-version
The rule-name variable is the name of the rule and can be up to 80 characters in length.
The http-version variable can be 0.9, 1.0, or 1.1.
URL rules
URL rules cause the Brocade Virtual ADX to make a load-balancing decision based on the contents
of the URL string in an incoming packet.
lists the URL rules available for Layer 7 content switching.
TABLE 23
URL rules for Layer 7 content switching
URL rule
name
Description
Syntax
Example
URL Exists
Matches if a URL
string exists in the
incoming packet.
[no] csw-rule rule-name url
exists
csw-rule r1 url exists
URL Prefix
Matches if the
URL string begins
with the specified
prefix.
[no] csw-rule rule-name url
prefix value
csw-rule r1 url prefix "/home"
URL Suffix
Matches if the
URL string ends
with the specified
suffix.
[no] csw-rule rule-name url
suffix value
csw-rule r1 url suffix ".gif"
URL Pattern
Matches if the
specified pattern
exists anywhere
within the URL
string.
[no] csw-rule rule-name url
pattern value
csw-rule r1 url pattern "test"