Forum Discussion
Stanislas_Piro2
Nov 03, 2016Cumulonimbus
Hi,
you have only to add a new URI in your switch:
when HTTP_REQUEST {
if { [active_members MYPOOL-MYSITE-P443] < 1 } {
HTTP::redirect "http://maintenance.mysite.com" }
switch -glob [HTTP::uri] {
"/customers*"{
if {[IP::addr [IP::client_addr]/8 equals 10.0.0.0]} {
HTTP::redirect "/CustomerInternal"
}
}
"*/admin1*" -
"*/admin2*" {
if { !([matchclass [IP::client_addr] equals ADMIN-ALLLOWED-IP-LIST])} {
reject
}
}
}
}