Forum Discussion
Benjamin_Moore_
Nimbostratus
May 07, 2014URL hostname redirect to pool
We have a request to redirect traffic coming in to the same VIP as such:
www.OURCOMPANY.com --> Pool A
dev.OURCOMPANY.com --> Pool B
mo.OURCOMPANY.com --> Pool C
services.OURCOMPANY.com --> Pool D
W...
Cory_50405
Noctilucent
May 07, 2014What version of code are you running? If v11.4 or above, you can use local traffic policy to match on the host and direct to a pool accordingly. Otherwise it can be done via iRule.
Benjamin_Moore_
Nimbostratus
May 07, 2014I see where I can select the host that I want but not a place where I can select the POOL to send the traffic to. Something like in this iRule:
Inspect the hostname provided in the HTTP host field and determine which pool to send the traffic to.
if {[string tolower [HTTP::host]] eq "dev.OURCOMPANY.com"}
{ pool COMPANYdev }
elseif {[string tolower [HTTP::host]] eq "mo.OURCOMPANY.com"}
{ pool COMPANYmo }
elseif {[string tolower [HTTP::host]] eq "services.OURCOMPANY.com"}
{ pool COMPANYsvcs }
else { pool COMPANYprod }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects