Cisco catalyst 6500 series Configuration Note page 71

Content switching module
Hide thumbs Also See for catalyst 6500 series:
Table of Contents

Advertisement

Chapter 6
Configuring Virtual Servers, Maps, and Policies
redirect-vserver VS1
inservice
probe TCP
!
vserver V2
virtual 10.86.213.179 tcp 82
serverfarm SF1-REDIR
persistent rebalance
inservice
!
Additional options for the redirect virtual server are available. You can adding %p to the end of the
relocation string so that it appends the remainder of the URL with the redirection. Enter CTRL+V ? to
embed a question mark into the URL. The default is to a type 302 redirect, but you can change the
redirection to a 301 as follows:
serverfarm SF1-REDIR
nat server
nat client CLIENT-NAT
redirect-vserver 22
webhost relocation www.jw?.com%p 301
inservice
You may also put https:// or ftp:// into the string, but this can also be done with the ssl word command
Any number other than 21 or 80 prepends the https:// and uses the port number given. Ports 21 and 80
prepend ftp:// and http:// respectively.
Route(config-slb-redirect-vs)# ssl ?
<1-65535>
ftp
https
www
To configure redirect virtual servers, perform this task:
Command
Step 1
Router(config-slb-sfarm)# redirect-vserv-
er name
Step 2
Router(config-slb-redirect-v)# webhost
relocation relocation string
Step 3
Router(config-redirect-v)# webhost back-
up backup string
Step 4
Router(config-redirect-v)# virtual
v_ipaddress tcp port
Step 5
Router(config-redirect-v)# idle duration
Step 6
Router(config-redirect-v)# client ip-ad-
dress network-mask [exclude]
OL-4612-01
ssl port number
File Transfer Protocol (21)
Secure Hypertext Transfer Protocol (443)
World Wide Web - Hypertext Transfer Protocol (80)
Catalyst 6500 Series Content Switching Module Configuration Note
Purpose
Configures virtual servers dedicated to real servers
and enters the redirect server submode
Configures the destination URL host name when re-
directing HTTP requests arrive at this server farm.
Only the beginning of the URL can be specified in
the relocation string. The remaining portion is taken
from the original HTTP request
Configures the relocation string sent in response to
HTTP requests in the event that the redirect server is
out of service. Only the beginning of the relocation
string can be specified. The remaining portion is
taken from the original HTTP request
Configures the redirect virtual server IP address and
2
port
.
Sets the CSM connection idle timer for the redirect
2
virtual server
.
Configures the combination of the IP address and
network mask used to restrict which clients are
allowed to access the redirect virtual server
Configuring Virtual Servers
1, 2
.
2
.
2
.
2
.
6-7

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 6000 series

Table of Contents