cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
434
Views
0
Helpful
1
Replies

Can CSM do URL Rewrite?

qixie
Level 1
Level 1

I noticed SSLM can do URL Rewrite but seems not on CSM. Can someone confirm it? Also, can ACE do URL Rewrite? If yes, could you please forward me the online docs?

Thx, Q.Xie

1 Reply 1

sachinga.hcl
Level 4
Level 4

HI Qingshan ,

The CSM can do URL rewrite.

Kindly find below a sample config for this might be it help u:

Configuring HTTP Redirect

This example shows how you can configure the CSM to send HTTP redirect messages:

# This configuration represents the configuration of site A

module ContentSwitchingModule 6

vlan 211 client

ip address 10.20.211.2 255.255.255.0

gateway 10.20.211.1

!

vlan 210 server

ip address 10.20.210.1 255.255.255.0

!

map SPORTMAP url

match protocol http url /sports*

!

serverfarm REDIRECTFARM

nat server

no nat client

redirect-vserver WWW2

webhost relocation www2.test.com 301

inservice

!

serverfarm WWW1FARM

nat server

no nat client

real 10.20.210.10

inservice

real 10.20.210.20

inservice

!

policy SPORTPOLICY

url-map SPORTMAP

serverfarm REDIRECTFARM

!

vserver WWW1VIP

virtual 10.20.211.100 tcp www

serverfarm WWW1FARM

persistent rebalance

slb-policy SPORTPOLICY

inservice

# This configuration represents the configuration of site B

module ContentSwitchingModule 7

vlan 221 client

ip address 10.20.221.2 255.255.255.0

gateway 10.20.221.1

!

vlan 220 server

ip address 10.20.220.1 255.255.255.0

!

serverfarm WWW2FARM

nat server

no nat client

real 10.20.220.10

inservice

real 10.20.220.20

inservice

!

vserver WWW2VIP

virtual 10.20.221.100 tcp www

serverfarm WWW2FARM

persistent rebalance

inservice

Also Kindly find below the ACE URL rewrite example:

http://www.cisco.com/en/US/products/hw/modules/ps2706/products_configuration_example09186a00809c3045.shtml

Find below the tutorial for AVE URL rewrite:

http://www.ciscosystems.org/en/US/docs/app_ntwk_services/data_center_app_services/ace_appliances/vA3_1_0/configuration/ssl/guide/terminat.html#wpmkr1149300

Also find below lot of config examples for Cisco ACE module as well as CSM in ht estarting for ACE and in the last of the page for CSM:

http://www.cisco.com/en/US/products/hw/modules/ps2706/prod_configuration_examples_list.html

It would be more good to tell if you can tell me about the actual redirection you are looking for as there are several ways. So if possible kindly tell what you are looking for redirecting to what I means if you are looking for port redirection or URI redirection or somehtng else please tell??

I will try to help you more then.

Kindly rate if you find this information of any use to you.

Sachin Garg

Review Cisco Networking for a $25 gift card