Forum Discussion
jaikumar_f5
Sep 14, 2018MVP
Edited after Stan's comment: Updated with starts_with, had missed -glob (added now)
Use any one of the below,
If else condition,
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/app/prod/" } {
pool Prod_Pool
} else {
pool Dev_Pool
}
}
Using switch,
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/app/prod/*" { pool Prod_Pool }
"/app/dev/*" { pool Dev_Pool }
}
}