CSM URL Redirect

Answered Question
Sep 8th, 2008

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

I have this problem too.
0 votes
Correct Answer by Syed Iftekhar Ahmed about 8 years 2 months ago

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

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Syed Iftekhar Ahmed Mon, 09/08/2008 - 15:20

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

Gilles Dufour Tue, 09/09/2008 - 01:38

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.

jcarvalh Tue, 09/09/2008 - 01:57

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

Actions

This Discussion