Forum Discussion
janlaw_195243
Nimbostratus
Jul 30, 2015irule to select pool based on url
Hi All,
I am new to f5 irules.
I need an irule that can select which pools to go base on the url.
Example :
url1 : https://www.abc.com
url2 : https://www.abc.com/dashboard ...
Kevin_Stewart
Employee
Jul 30, 2015Here's a quick iRule example:
when HTTP_REQUEST {
switch -gob [string tolower [HTTP::uri]] {
"/dashboard*" { pool pool_B }
"/" { pool pool_A }
default { pool pool_A }
}
}
But then you can also do this task with an LTM policy and no iRules at all. Remember to enable OneConnect in the virtual server and in the associated HTTP profile to be able to do this context-based load balancing.
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