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

CSM 302 redirection with domain change

nestlelan
Level 1
Level 1

running CSM-S with 2.2.(5)....I need to do the following on the same vserver:

==========================================================

Point 2) and point 3) should take precedence on point 1)

1)  URL /*

From http://mysites.ams.pippo.com

to http://mysite-ams.pippo.com

2)  URL /personal/%p

from:

http://mysites.ams.pippo.com/personal/[SAMAccoutnName]

to:

http://mysite-ams.pippo.com/personal/pippo_[SAMAccoutnName]

3)  URL variable2/personal/%p

from:

http://mysites.ams.pippo.com/variable2/personal/variable1

to:

http://mysite-ams.pippo.com/variable2/personal/pippo_variable1

is this the right config? can we do a webex?

!

map URL-ANY url

  match protocol http url /*

!

map URL-SHARPT-P2 url

  match protocol http url /personal/%p

!

map URL-SHARPT-P3 url

  match protocol http url mysites.%2/personal/%1

!

!

policy SHARPT-PROD-RD1

  url-map URL-ANY

  serverfarm SHARPT-PROD-RD1

!

serverfarm SHARPT-PROD-RD1

  nat server

  no nat client

  redirect-vserver SHARPT_PROD-RD

   webhost relocation http://mysite-ams.pippo.com/%p

   inservice

!

!

policy SHARPT-PROD-RD2

  url-map URL-SHARPT-P2

  serverfarm SHARPT-PROD-RD2

!

serverfarm SHARPT-PROD-RD2

  nat server

  no nat client

  redirect-vserver SHARPT_PROD-RD2

   webhost relocation  http://mysite-ams%2/personal/pippo_%1

inservice

!

policy SHARPT-PROD-RD3

  url-map URL-SHARPT-P3

  serverfarm SHARPT-PROD-RD3

!

serverfarm SHARPT-PROD-RD3

  nat server

  no nat client

  redirect-vserver SHARPT_PROD-RD3

   webhost relocation  http://mysite-%2/personal/pippo_%1

inservice

!

vserver SHARPT-PROD

parse-length 4000

slb-policy SHARPT-PROD-RD1

slb-policy SHARPT-PROD-RD2

slb-policy SHARPT-PROD-RD3

!

1 Reply 1

Daniel Arrondo Ostiz
Cisco Employee
Cisco Employee

Hi,

I'm afraid that what you are trying to achieve is not possible on the CSM. You cannot configure regex-based redirection.

The maximum you would be able to achieve is changing "http://mysites.ams.pippo.com" into "http://mysite-ams.pippo.com"

For the kind of rediretion you require, you would need to move to ACE.

I wish I could give you a more satisfactory answer

Regards

Daniel

Review Cisco Networking for a $25 gift card