Forum Discussion
Annsar_Akhtar
Nov 24, 2016Nimbostratus
Thank 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 } }