Forum Discussion
Eugene_Reznik_1
Nimbostratus
Jul 31, 2013Routing based on URI
I need to create an iRule that would send all traffic to the root of website and and about 100 defined subfolders to the default pool. Any undefined subfolders should go to the market pool.
Here...
Eugene_Reznik_1
Nimbostratus
Aug 01, 2013root (/ or /default.aspx) won't match data group (i.e. it does not start with /uri1/), will it? so, why do you have to differentiate?
That's true, but I need the subfolders that are not defined in the data group to be routed to a different pool.
The other way to look at what I need would be:
if {$root || [class match -- $uri starts_with uri_class] } {
pool foo
} else {
pool qux
}
So if its root or a defined subfolder it would go to the default pool. And if is a subfolder but not defined in the data group it would go to a different pool.
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