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
Command Modes
Command History
Usage Guidelines
Examples
Related Commands
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.” |
|
|
The default status code is 302. |
|
SLB redirect virtual server configuration submode
Release | Modification |
CSM release 1.1(1) | This command was introduced. |
|
|
This command was introduced. | |
|
|
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 relocation string that is sent in response to HTTP requests:
Catalyst 6500 Series Switch Content Switching Module with SSL Command Reference
|
| ||
|
|