Cisco OL-15491-01 User Manual

Page 184

Advertising
background image

A-184

Cisco Content Services Gateway - 2nd Generation Release 2.0 Installation and Configuration Guide

OL-15491-01

Appendix A CSG2 Command Reference

match url

Do not forget that the entire pattern, including wildcards and UNIX string-matching special
characters, cannot exceed 128 characters.

You can specify up to 8192 match patterns.

The following table shows and describes the special characters that you can use in the pattern argument
in URL match patterns.

For WAP, the CSG2 supports only URL maps. Header maps and method maps are not supported.

When configuring a map, keep the following considerations in mind:

We recommend that you configure the URL match pattern during your maintenance window, or
during off-peak hours.

You cannot specify different types of match patterns in a given map. For example, a map can include
one or more match header statements, but it cannot include both match header statements and
match url statements.

You can specify up to three maps in a given policy: one for header matching, one for method
matching, and one for URL matching. For example, the following is a valid configuration:

ip csg map HOSTMAP

match header host1 value *.2.*.44

!

ip csg map URLMAP

Convention Description

*

Zero or more characters.

+

Zero or more repeated instances of the token preceding the +.

?

Zero or one character.

\character

Escaped character.

Examples:

\? Match on a question mark (\<ctrl-v>?)

\+ Match on a plus sign

\* Match on an asterisk

\a Alert (ASCII 7)

\b Backspace (ASCII 8)

\f Form-feed (ASCII 12)

\n New line (ASCII 10)

\r Carriage return (ASCII 13)

\t Tab (ASCII 9)

\v Vertical tab (ASCC 11)

\0 Null (ASCII 0)

\\ Back slash

Bracketed range [0-9]

Matching any single character from the range.

A leading ^ in a range

Do not match any in the range. All other characters represent themselves.

.\x##

Any ASCII character as specified in two-digit hex notation.

For example, \x3f yields a ? for a one-character wild card match.

Advertising