Forum Discussion
Stanislas_Piro2
Jun 05, 2017Cumulonimbus
If you want to check multiple URLs, you can use switch command instead of if / elseif / elseif / else...
when HTTP_REQUEST {
set variable XX
switch -glob -- [HTTP::uri] {
"/obs.php?abc*" -
"/obs.php?def*" -
"/obs.php?re*" {
if {[string tolower [URI::query [HTTP::uri] "RH"]] equals "xx"} {
pool POOLX
}
else {
HTTP::respond 403
}
}
default {pool POOLX }
}
}
the dash character at the end of each value is like a or between values.