Forum Discussion

ukitsysadmin_95's avatar
ukitsysadmin_95
Icon for Nimbostratus rankNimbostratus
Oct 28, 2009

Redirect internal urls to certain servers within a pool

 

Hello all,

 

 

we have a load balanced pool of 10 x web servers, which hosts a web site, now from time to time, we get reports that the site isn't working

 

 

let just say the public site is www.xxx.com

 

 

I want to test all servers are publishing http traffic, I want to create a rule, where if I type the following it gets redirected to a single server within that pool on port 80

 

 

Example:

 

 

www.xxx.com - public site

 

 

ww1.xxx.com goes to server ip address 1.1.1.1 Port 80 but redirects to www.xxx.com on server 1

 

ww2.xxx.com goes to server ip address 1.1.1.2 Port 80 but redirects to www.xxx.com on server 2

 

ww3.xxx.com goes to server ip address 1.1.1.3 Port 80 but redirects to www.xxx.com on server 3

 

so on and so on

 

 

Can you please help

 

 

Kind Regards

 

 

James

1 Reply

  • Hi James,

     

     

    You can map a hostname to a specific pool member using logic like that in this post:

     

     

    http://devcentral.f5.com/Default.aspx?tabid=53&view=topic&postid=62994&ptarget=63017

     

     

    Instead of using the switch on '[URI::query [HTTP::uri] "node"]', you could check the [HTTP::host] value.

     

     

    Aaron