Forum Discussion
Dbow_21284
Jul 10, 2009Nimbostratus
I am thinking I can do something like this:
when HTTP_REQUEST {
if { [HTTP::host] equals "guidelines.acc.org" } {
if {[active_members SP_Guidelines] > 0} {
pool SP_Guidelines
} else {
HTTP::redirect "http://maintenance.acc.org"
event disable all
}
} elseif { [HTTP::host] equals "members.acc.org" } {
if {[active_members SP_Members] > 0} {
pool SP_Members
} else {
HTTP::redirect "http://maintenance.acc.org"
event disable all
}
} elseif { [HTTP::host] equals "qualityfirst.acc.org" } {
if {[active_members SP_QF] > 0} {
pool SP_QF
} else {
HTTP::redirect "http://maintenance.acc.org"
event disable all
}
}
.......
}
But I guess I am confused on if I do it this way I still need a pool to be in the VIP for it to be up. For instance, if there is no pool, its RED in the LTM GUI.
So not saying that I solved my issue, but I am researching and welcome all feedback ona design.
Thanks so much in advance.
Dbow