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...
nitass
Employee
Aug 01, 2013So 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.is it something like this?
e.g.
[root@ve10:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
set uri [string tolower [HTTP::uri]]
if { [HTTP::uri] equals "/" or [class match -- $uri starts_with uri_class] } {
pool foo
} else {
pool qux
}
}
when HTTP_RESPONSE {
log local0. "uri: $uri pool: [LB::server pool]"
}
}
[root@ve10:Active] config tail -f /var/log/ltm
Aug 1 15:17:48 local/tmm info tmm[5139]: Rule myrule : uri: / pool: foo
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