09-08-2008 02:03 PM
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
Solved! Go to Solution.
09-08-2008 03:20 PM
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
09-08-2008 03:20 PM
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
09-08-2008 11:45 PM
This means that I need to have another entry in the DNS server (for http://123.ip.com)?
09-09-2008 01:38 AM
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.
09-09-2008 01:57 AM
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
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