Friday, April 29, 2011

Setting up a NetScaler for URL Redirection

Here are the steps involved in setting up URL Redirection…


Usage cases:


1. One public IP and multiple services requiring the same port number


Example:


  1. www.domainname.com -> Web Server01 on port 80

  2. blog.domainname.com -> Web Server02 on port 80


As you can see in most case you would need to Public IP addresses to get this completed however using Content Switching on the NetScaler you can simply make this happen with One Public IP


What you will need to do is the following:


  1. Login to your NetScaler

  2. Click on Content Switching

  3. Create a Virtual Server (This is going to be your Public Server)

  4. Create a Policy with the following, -> Name = WWW or BLOG (this is just a friendly name), Domain = www.domainname.com, Rule = nstrue

  5. Repeat step 4 for as many URL Headers as you need redirected

  6. Now for the fun stuff…

  7. Click on Load Balance

  8. Create a Server, Service, and Virtual Server for the above backend servers

  9. Now back to Content Switching…

  10. Open the Virtual Server you created in Step 3

  11. Now add the policies you created in step 4

  12. Now for each Policy you add, add the Virtual Server(s) you created in step 8

  13. Before testing make sure your DNS entries are set correctly so www.domainname.com should point to the Virtual Servers IP you created in Step 3 or atleast the NAT'ed address.

  14. Now Time to Test launch a Web Browser and browse to www.domainname.com and blog.domainname.com


I will be adding a video about this configuration shortly, also I will be adding a blog about NAT'ing


Here is the link to the Interactive HOW-TO Video http://blog.ntcrash.biz/FlashVideos/NetScaler URL Redirect.htm

No comments:

Post a Comment