Cisco Systems OL-7029-01 manual Match protocol http url URL map submode

Models: OL-7029-01

1 342
Download 342 pages 1.49 Kb
Page 56
Image 56

Chapter 2 Content Switching Module with SSL Commands

match protocol http url (URL map submode)

match protocol http url (URL map submode)

To add a URL regular expression to a URL map, use the match protocol http url command in the SLB URL map configuration submode. Multiple match rules can be added to a URL map. To remove the URL regular expression from the URL map, use the no form of this command.

match protocol http [method method-expression]url url-expression

no match protocol http [method method-expression]url url-expression

Syntax Description

 

method method-expression

(Optional) Specifies the method to match.

 

 

url-expression

Specifies the regular expression range; the range is from 1 to 255

 

 

 

characters.

 

 

 

 

 

 

 

Defaults

 

This command has no default settings.

 

 

 

Command Modes

 

SLB URL map configuration submode

 

 

 

 

Command History

 

Release

Modification

 

 

 

 

 

 

CSM release 1.1(1)

This command was introduced.

 

 

 

 

 

 

CSM release 4.1(1)

HTTP method parsing support was introduced.

 

 

 

 

 

 

CSM-S release 1.1(1)

This command was introduced.

 

 

 

 

Usage Guidelines

Examples

Related Commands

URL regular expressions (see “Regular Expressions” section on page 2-3)are based on the UNIX filename specification. URL expressions are stored in a cookie map in the form urln. URL expressions do not allow spaces and only one of the URLs in the map must be matched

The method expression can either be one of the standard HTTP 1.1 method names (OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, or CONNECT) or a string you specify that must be matched exactly (PROTOPLASM).

This example shows how to add URL expressions to a URL map:

Cat6k-2(config-slb-map-url)# match protocol http url html

map url

show module csm map url-map (policy submode)

Catalyst 6500 Series Switch Content Switching Module with SSL Command Reference

2-34

OL-7029-01

 

 

Page 56
Image 56
Cisco Systems OL-7029-01 manual Match protocol http url URL map submode, SLB URL map configuration submode