beautypg.com

Configuring regular expressions, Configuring regular expressions 413 – Nortel Networks WEB OS 212777 User Manual

Page 413

background image

Web OS 10.0 Application Guide

Chapter 15: Content Intelligent Switching

n

413

212777-A, February 2002

n

Size of the regular expression structure after compilation cannot exceed 43 bytes for load
balancing strings and 23 bytes for Web Cache Redirection. The size of regular expression
after compilation varies, based on regular expression characters used in the user input
string.

n

Use “/” at the beginning of the regular expression. Otherwise a regular expression will
have “*” prefixed to it automatically. For example, “html/*\.htm” appears as
“*html/*\.htm”.

n

Incorrectly or ambiguously formatted regular expressions are rejected instantly. For exam-
ple:

o

where a “+” or “?” follows a special character like the “*”

o

A single “+” or “?” sign

o

Unbalanced brackets and parenthesis

Configuring Regular Expressions

The regular expression feature is applicable to both URL SLB path strings and URL SLB redi-
rected expression strings. Configure regular expressions at the following CLI prompts:

or

As a result, both HTTP SLB and WCR can use regular expression as the resource.

N

OTE

The more complex the structure of the string, the longer it will take for the server to

load balance the incoming packets.

/cfg/slb/layer7/slb/add

/cfg/slb/layer7/slb/redir/add