Forum Discussion
frisco76_104868
Nimbostratus
Oct 21, 2009redirect to another pool member based on URI string
hi all, i'm looking to implement the following iRule below. What I'm not sure of if I want to redirect to a member of ANOTHER pool. is that possible to do?
(iRule for Pool 1)
}
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/web01" } {
node 192.168.101.1 80
} elseif { [HTTP::uri] starts_with "/web02" } {
node 192.168.101.2 80
} else {
pool pool-2
node 192.168.101.20 80
}
pool pool-2
node 192.168.101.20 80
Is this syntax valid? Can I redirect it to another pool and member?
thanks in advance.
- James_Quinby_46Historic F5 AccountIf you only want requests to go to 192.168.101.20:80, there's probably no need to specify the pool ("pool-2") as above. Take a look here:
- frisco76_104868
Nimbostratus
Thanks for the response... it is sort of weird but the second pool as a member with the same IP and port number. It is good to know you can specify the pool.
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