Forum Discussion
Annsar_Akhtar
Nimbostratus
Nov 24, 2016F5 irule getfield to split url and pass to different pools
Hi All
I am using the getfield to split a url and see if I can get the traffic to a different pool. The challenge I have is that /test/// needs to be served from a different pool from the defaul...
Annsar_Akhtar
Nimbostratus
Nov 24, 2016Thank Kai
In terms of examples:
/test/level/level2 or /test/level/level2/level3 needs to be routed to another pool, any requests for /test/level/level2/level3/level4 or /test/level/level2/level3/level4/level5 etc.. will need to be served by the default pool.
I wonder if I could have used:
when HTTP_REQUEST { if { ( [string tolower [HTTP::uri]] starts_with "/test/" ) and ( [llength [split [HTTP::path] "/"]] > 5 ) } then { pool TESTPOOL } else { pool DEFAULTPOOL } }
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