Cisco Systems OL-7029-01 Switch User Manual


 
2-91
Catalyst 6500 Series Switch Content Switching Module with SSL Command Reference
OL-7029-01
Chapter 2 Content Switching Module with SSL Commands
webhost relocation (redirect virtual server submode)
webhost relocation (redirect virtual server submode)
To specify a relocation string sent in response to HTTP requests, use the webhost relocation command
in the SLB redirect virtual server configuration submode. To disable the relocation string, use the no
form of this command.
webhost relocation relocation string [301 | 302]
no webhost relocation
Syntax Description
Defaults The default status code is 302.
Command Modes SLB redirect virtual server configuration submode
Command History
Usage Guidelines The backup string may include a %p at the end to indicate inclusion of the path in the HTTP redirect
location statement field.
Examples This example shows how to specify a relocation string that is sent in response to HTTP requests:
Cat6k-2(config-slb-redirect-vs)# webhost relocation www.myhome1.com%p 301
Related Commands redirect-vserver (real server submode)
show module csm vserver redirect
relocation 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.”
Release Modification
CSM release 1.1(1) This command was introduced.
CSM-S release 1.1(1) This command was introduced.