Forum Discussion
Les_Marstaeller
Nimbostratus
Dec 15, 2005Default pool when using IRules
Hi,
I am using an irule to direct http requests to one of two pools depending on the url.
eg. /123 goes to pool 123 and /456 goes to pool 456
In this case, do I need to s...
Vincent_Power_9
Nimbostratus
Dec 15, 2005You don't need a default pool in this situation, you could have your iRule redirect to a generic page if you wanted a "catch everything else" set-up.
Something like this would work
when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/123"} {
pool 123
} elseif {[HTTP::uri] starts_with "/456"} {
pool 456
} else {
HTTP::redirect http://some.other.address/
}
}
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