Forum Discussion
mwi
Nov 15, 2023Altocumulus
i havent testet it, but i think it should work if you put site1.com in a pool with a http monitor and check active_members.
Something like that
when HTTP_REQUEST {
if { [HTTP::host] eq "mainsite.com" } {
if { [active_members pool_site1] > 0 } {
HTTP::redirect http://site1.com
} Else {
HTTP::redirect http://site2.com
}
}