Forum Discussion
Dec 27, 2019
Can you try this iRule?
when HTTP_REQUEST {
if { [string tolower [HTTP::path]] starts_with "/a/b" } {
set newPath [string map {"/a/b" ""} [HTTP::path]]
# log local0. "Path without /a/b: $newPath"
if { [class match [string tolower $newPath] equals x_uri_list] } {
pool x_pool
}
elseif { [class match [string tolower $newPath] equals y_uri_list] } {
pool y_pool
}
else {
# reject
}
}
else {
# reject
}
}