Forum Discussion
John_Alam_45640
Feb 25, 2014Historic F5 Account
This may be what you are asking for, change data_group_name_here to the real name of the datagroup you created:
when HTTP_REQUEST {
if { [class match [IP::client_addr] equals data_group_name_here] } {
switch -glob [string tolower [HTTP::uri]] {
"/jumper" { pool jumper_JMPRIIS_Https_Pool
log local0. "redirect irule pool jumper_JMPRIIS_Https_Pool" }
"/" - "/annie" - "/bugg" - "/charles" - "/dog" - "/fashion" {
pool fashion_FHSIIS_Https_Pool
log local0. "redirect irule pool fashion_FHSIIS_Https_Pool" }
default { pool skijump_SKJWEB_Https_Pool
log local0. "redirect irule pool skijump_SKJWEB_Https_Pool" }
}
} else {
HTTP::respond 200 content {Maintenance PageSite is down, try again later.}
}
}