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 ...
Lee_Payne_53457
Cirrostratus
Jul 30, 2015Something like this: when HTTP_REQUEST { switch [string tolower [HTTP::uri]] { "/" { pool pool_A } "/dashboard" { pool pool_B } default { } } }
You can then add others as required, if you want do do partial matches using regex
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