Forum Discussion
cjunior
Nacreous
Apr 13, 2015Hi, you might be using an improper event for this purpose.
I made some changes and it might work. Hope it helps you. [] when HTTP_REQUEST {
if { [active_members [LB::server pool]] < 1 } {
if { [string tolower [URI::decode [HTTP::uri]]] starts_with "/ohrcc/pages/client" } {
log local0. "iRule:client-maintenance - routing to maintenance pool"
Use this
use pool client-maint
Or
HTTP::respond 302 Location "https://client.accenture.com/test/maintenance-page.htm"
}
elseif { [string tolower [URI::decode [HTTP::uri]]] starts_with "/placeholder-check-for-future-maintenance-pages" } {
log local0. "iRule:future-maintenance - routing to maintenance pool"
use pool future-maint
} else {
log local0. "iRule:Lantmannen-maintenance - routing to normal pool"
use pool normal-pool
}
}
}
when LB_FAILED {
persist none
LB::reselect
}