Forum Discussion
iaine
Aug 30, 2018Nacreous
Hi
I think you need to re-order your logic slightly so that the redirect only happens if all other logic doesn't fire. Try something like this
when HTTP_REQUEST {
if {([class match [IP::client_addr] equals DG-INTERNAL-IP])} {
pool TESTPOOL_443
} elseif {
[string tolower [HTTP::uri]] eq "/test"} {
pool TESTPOOL_443
} else {
HTTP::redirect "http://maintenance.test.com"
}
}