Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

CSM URL Redirect

Hello.

I have the following config (short version):

vserver Test

virtual 10.0.1.210 tcp www

serverfarm Test

inservice

serverfarm Test

real 172.16.254.13

inservice

My goal is to redirect all traffic arriving to vserver Test, from http://123.test.com to http://123.ip.com

I have seen some examples but I get confused, since the redirect serverfarm is not associated with any real server; I also find litle to none documentation explaining url redirecting.

Thanks in advanced,

JC

1 ACCEPTED SOLUTION

Accepted Solutions

Re: CSM URL Redirect

Typical CSM redirection is as follows.

vserver Test

virtual 10.0.1.210 tcp www

serverfarm REDIRECTFARM

inservice

serverfarm REDIRECTFARM

nat server

no nat client

redirect-vserver WWW2

webhost relocation 123.ip.com 302

inservice

above config will send a 302 redirect to any client request matching http://10.0.1.210.

Client browser will then initiate a new http request for http://123.ip.com.

You will need to have another VServer waiting for connection attempts to http://123.ip.com and this Vserver will have the real in it.

HTH

Syed Iftekhar Ahmed

4 REPLIES

Re: CSM URL Redirect

Typical CSM redirection is as follows.

vserver Test

virtual 10.0.1.210 tcp www

serverfarm REDIRECTFARM

inservice

serverfarm REDIRECTFARM

nat server

no nat client

redirect-vserver WWW2

webhost relocation 123.ip.com 302

inservice

above config will send a 302 redirect to any client request matching http://10.0.1.210.

Client browser will then initiate a new http request for http://123.ip.com.

You will need to have another VServer waiting for connection attempts to http://123.ip.com and this Vserver will have the real in it.

HTH

Syed Iftekhar Ahmed

New Member

Re: CSM URL Redirect

This means that I need to have another entry in the DNS server (for http://123.ip.com)?

Cisco Employee

Re: CSM URL Redirect

if you redirect to 123.ip.com you indeed need an entry in the dns server so the client can resolve that hostname to an ip address.

But, why do you want to redirect to this hostname if you don't have a dns entry already ??

What's the goal of your redirect ?

Gilles.

New Member

Re: CSM URL Redirect

Basically, our client does not want the real url to appear on browsers. So we put a different entry on the DNS server and then we redirect or rewrite the request to the original url (http://123.ip.com).

I can do this easily (rewriting) using some ISA servers that I have; but since I find CSM more reliable I was trying to do it on the CSM.

That is why I am trying to do this.

JC

394
Views
0
Helpful
4
Replies