beautypg.com

Order of expressions (not available on the sa7200) – HP Traffic Director sa7220 User Manual

Page 38

background image

C H A P T E R 2

HP Traffic Director Server Appliances User Guide

26

Each server listed for fulfillment of a RICH_HTTP service can be
configured to serve any number of specific rich expressions.
Applicable expressions are listed below:

File type expressions, such as *.gif, or */index.html

Path expressions, such as /home/*, or /home/images/*, or /home/
images/a*.

Unique file expressions, such as /index.html

Wildcard expression, such as *.

Negation expressions, such as !*.gif or !*/index.html

RICH expressions are managed with the following commands:

config policygroup service server

port expression create

, and

config policygroup service server

port expression delete

Order of Expressions (not available on the
SA7200)

NOTE: The “*” and “!”
are allowed in
expressions, but they can
only exist at the
beginning or end of the
expression. Also, a
positive expression is
required after a not (!)
expression, otherwise the
(!) expression has no
effect.

When using expressions in Layer 7 (RICH) operations, the order of
expressions is significant only when the "not" (!) operator is used.

Expressions are described below.

Expression

Yields

!*.gif;*

All non-GIF files

*;!*.gif

All files, because after specifying “all” (*), the
!*.gif expression is never reached

!*.html;/home/*

Matches all requests of the form “/home/*”
except HTML files

/home/*;!*.html

Matches all files of the form “/home/*.” The
!*.html has no effect.

!/home/*

No matches

!/home/*;*

All matches except ones starting with "/home"