Chapter 2 Content Switching Module with SSL Commands

webhost backup (redirect virtual server submode)

webhost backup (redirect virtual server submode)

Syntax Description

Defaults

Command Modes

Command History

Usage Guidelines

Examples

Related Commands

To specify a backup string sent in response to HTTP requests, use the webhost backup command in SLB redirect virtual server configuration submode. To disable the backup string, use the no form of this command.

webhost backup backup-string[301 302]

no webhost backup

backup-string

String sent in response to redirected HTTP requests; the maximum

 

length is 127 characters.

 

 

301

(Optional) Specifies the HTTP status code: “The requested resource

 

has been assigned a new permanent URL.”

 

 

302

(Optional) Specifies the HTTP status code: “The requested resource

 

resides temporarily under a different URL.”

 

 

The default status code is 302.

 

SLB redirect virtual server configuration submode

Release

Modification

CSM release 1.1(1)

This command was introduced.

 

 

CSM-S release 1.1(1)

This command was introduced.

 

 

This command is used in situations where the redirect virtual server has no available real servers. The 301 value or 302 value is used to specify the redirect code. The backup string may include a %p at the end to indicate inclusion of the path in the HTTP redirect location statement field.

This example shows how to specify a backup string that is sent in response to HTTP requests:

Cat6k-2(config-slb-redirect-vs)#webhost backup www.mybackup.com%p 301

redirect-vserver (real server submode) show module csm vserver redirect

Catalyst 6500 Series Switch Content Switching Module with SSL Command Reference

2-90

OL-7029-01

 

 

Page 112
Image 112
Cisco Systems OL-7029-01 Webhost backup redirect virtual server submode, Webhost backup backup-string301 No webhost backup