07-24-2009 12:25 PM
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
07-24-2009 07:48 PM
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:
Find below the tutorial for AVE URL rewrite:
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide