Forum Discussion
Przemyslaw_Wyr1
Aug 30, 2018Altocumulus
You can try something like that
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/test" {
pool TESTPOOL_443
}
default {
if {([class match [IP::client_addr] equals DG-INTERNAL-IP])} {
pool TESTPOOL_443
} else {
HTTP::redirect "http://maintenance.test.com"
}
}
}
}