Forum Discussion
peter_siman
Nimbostratus
May 29, 2011Pool selection based on URI string
Hi,
I have writtend a simple iRule to select particular pool based on what the URI string is. See below the iRule. Unfortunatelly, when applied a following messsages show up in logs.
...
The_Bhattman
Nimbostratus
Jun 09, 2011Hi Bob,
I don't I am understanding what you mean by "NOT redirecting to the pool listed" Let's explain what the code I posted does. Then let me know where the logic doesn't work to what you want it to do.
The code I posted basically states that if a request comes in with https://secure2.mydomain.com/mcbob or https://secure2.mydomain.com/mcbobandstuff it will forward the request to pool secure2.mydomain.com. If the request is https://secure.mydomain.com/ or https://secure.mydomain.com/mcbob or https://secure.mydomain.com/blahblah it will go to pool secure.mydomain.com. If a request comes to the vip as https://secure3.mydomain.com/ it will not match the switch and IF statements and thus rely on the default pool that you have set in the virtual address.
I hope somewhere in my explaination clarifies what the code is doing vs what you want it do.
Bhattman
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