SandeepDV
Jul 09, 2019Nimbostratus
Set a Maintenance page for specific IP subnet.
I want to set a maintenance page if all the pool members are down, only for given IP subnet. I have created a datagroup with list of IP addresses L-IP.
Maintenance page is in base64 format. will the below rule works?
when HTTP_REQUEST {
if { [active_members [LB::server pool]] equals 0 } {
if { [IP::addr [IP::client_addr] equals L-IP] }
HTTP::respond 200 content [ b64decode [ base64code ] ]
}
}