Chapter 2 Content Switching Module with SSL Commands

match protocol http header (header map submode)

match protocol http header (header map submode)

To specify header fields and values for the CSM to search for when receiving a request, use the match protocol http header command in SLB header map configuration submode. Multiple match rules can be added to a header map. To remove the header match rule from the header map, use the no form of this command.

match protocol http header field header-value expression

no match protocol http header field

Syntax Description

 

field

Literal name of the generic field in the HTTP header. The range is

 

 

 

from 1 to 63 characters.

 

 

 

 

 

 

 

header-value expression

Specifies the header value expression string to compare against the

 

 

 

value in the specified field; the range is from 1 to 127 characters.

 

 

 

 

 

 

 

 

 

Defaults

 

This command has no default settings.

 

 

 

 

Command Modes

 

SLB header map configuration submode

 

 

 

 

 

Command History

 

Release

Modification

 

 

 

 

 

 

 

 

CSM release 2.1(1)

This command was introduced.

 

 

 

 

 

 

 

CSM-S release 1.1(1)

This command was introduced.

 

 

 

 

 

 

 

 

 

Usage Guidelines

 

There are predefined fields, for example, Accept-Language, User-Agent, or Host.

 

 

Header regular expressions (see “Regular Expressions” section on page 2-3)are based on the UNIX

 

 

filename specification. URL expressions are stored in a header map in the form header-name=

 

 

expression. Header expressions allow spaces if they are escaped or quoted. All headers in the header map

 

 

must be matched.

 

 

 

 

 

 

Examples

 

This example shows how to specify header fields and values to search upon a request:

 

 

Cat6k-2(config-slb-map-header)#match protocol http header Host header-value XYZ

 

 

header-map (policy submode)

 

 

Related Commands

 

 

 

 

 

insert protocol http header (header map submode)

 

 

map header

 

 

 

 

show module csm map

 

 

Catalyst 6500 Series Switch Content Switching Module with SSL Command Reference

2-30

OL-7029-01

 

 

Page 52
Image 52
Cisco Systems OL-7029-01 manual Match protocol http header header map submode, Header-value expression, Must be matched