Forum Discussion
DEJ
Nimbostratus
Hi Raghav,
An easy way to do this would be to set a variable for comparison. In the below example, you would change the value of 'SiteDown' to 1 to manually enable the maintenance page. When set to 0, it would only redirect if there were less than 1 pool member available. Please let me know if you have further questions.
when HTTP_REQUEST {
Set SiteDown to 1 to enable maintenance page
set SiteDown 0
if {($SiteDown == 1) || ([active_members [LB::server pool]] < 1)}{
HTTP::respond 503 content {.......}
}
}
Samir_Jha_52506
Apr 25, 2016Noctilucent
Hi Dareuja,
Can you please paste full irule. I am bit confused here.