Cisco catalyst 6500 series Configuration Note page 185

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

Advertisement

Appendix A
Configuration Examples
0x0020
0x0030
0x0040
0x0050
0x0060
0x0070
0x0080
0x0090
0x00a0
0x00b0
0x00c0
0x00d0
0x00e0
0x00f0
0x0100
0x0110
0x0120
0x0130
0x0140
# The following example is the message that the client has received back from
# www1.cisco.com. This message is the HTTP redirect message generated by the CSM
10.20.211.100.80 > 10.20.1.100.34589: FP 1:56(55) ack 287 win 2048 (DF)
0x0000
0x0010
0x0020
0x0030
0x0040
0x0050
# The redirect location sent back to the client matches exactly the string configured with
# the webhost relocation www2.test.com 301 command because the client was browsing
# www1.test.com/sports/ and is redirected to www2.test.com/.
# In some cases this might not be the desired behaviour and there might be the need to
# preserve the original URL that the browser requested.
# To preseerve the URL that the browser requested, you can use the %p parameter as part of
# the redirect string.
# The configuration would then appear as:
#
serverfarm REDIRECTFARM
#
#
#
#
#
# The following example shows the resulting redirect message which is sent back to the
# client:
10.20.211.100.80 > 10.20.1.100.34893: FP 1:64(63) ack 329 win 2048 (DF)
0x0000
0x0010
0x0020
0x0030
0x0040
0x0050
0x0060
# In other cases, you may need to redirect an HTTP request to an HTTPS VIP, on the same or
# on a remote CSM. In that case, the URL request must change from http:// to https://
OL-4612-01
5018 16d0 96b2 0000 4745 5420 2f73 706f
7274 732f 2048 5454 502f 312e 310d 0a43
6f6e 6e65 6374 696f 6e3a 204b 6565 702d
416c 6976 650d 0a55 7365 722d 4167 656e
743a 204d 6f7a 696c 6c61 2f35 2e30 2028
636f 6d70 6174 6962 6c65 3b20 4b6f 6e71
7565 726f 722f 322e 322d 3131 3b20 4c69
6e75 7829 0d0a 4163 6365 7074 3a20 7465
7874 2f2a 2c20 696d 6167 652f 6a70 6567
2c20 696d 6167 652f 706e 672c 2069 6d61
6765 2f2a 2c20 2a2f 2a0d 0a41 6363 6570
742d 456e 636f 6469 6e67 3a20 782d 677a
6970 2c20 677a 6970 2c20 6964 656e 7469
7479 0d0a 4163 6365 7074 2d43 6861 7273
6574 3a20 416e 792c 2075 7466 2d38 2c20
2a0d 0a41 6363 6570 742d 4c61 6e67 7561
6765 3a20 656e 5f55 532c 2065 6e0d 0a48
6f73 743a 2077 7777 312e 7465 7374 2e63
6f6d 0d0a 0d0a
4500 005f 763c 4000 3e06 dd6c 0a14 d364
0a14 0164 0050 871d 7b57 aead ec1d 6b04
5019 0800 8b1a 0000 4854 5450 2f31 2e30
2033 3031 2046 6f75 6e64 200d 0a4c 6f63
6174 696f 6e3a 2068 7474 703a 2f2f 7777
7732 2e74 6573 742e 636f 6d0d 0a0d 0a
nat server
no nat client
redirect-vserver WWW2
webhost relocation www2.test.com/%p
inservice
4500 0067 7d95 4000 3e06 d60b 0a14 d364
0a14 0164 0050 884d 7093 b53b 4e0b e8a8
5019 0800 2800 0000 4854 5450 2f31 2e30
2033 3032 2046 6f75 6e64 200d 0a4c 6f63
6174 696f 6e3a 2068 7474 703a 2f2f 7777
7732 2e74 6573 742e 636f 6d2f 7370 6f72
7473 2f0d 0a0d 0a
Catalyst 6500 Series Content Switching Module Configuration Note
HTTP Redirect
P.......GET./spo
rts/.HTTP/1.1..C
onnection:.Keep-
Alive..User-Agen
t:.Mozilla/5.0.(
compatible;.Konq
ueror/2.2-11;.Li
nux)..Accept:.te
xt/*,.image/jpeg
,.image/png,.ima
ge/*,.*/*..Accep
t-Encoding:.x-gz
ip,.gzip,.identi
ty..Accept-Chars
et:.Any,.utf-8,.
*..Accept-Langua
ge:.en_US,.en..H
ost:.www1.test.c
om....
E.._v<@.>..l...d
...d.P..{W....k.
P.......HTTP/1.0
.301.Found...Loc
ation:.http://ww
w2.test.com....
E..g}.@.>......d
...d.P.Mp..;N...
P...(...HTTP/1.0
.302.Found...Loc
ation:.http://ww
w2.test.com/spor
ts/....
A-31

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 6000 series

Table of Contents