Forum Discussion
juhiverma17_320
May 11, 2017Nimbostratus
This is the Irule I'm using:
when HTTP_REQUEST { if {[active_members [LB::server pool]] == 0} { switch [HTTP::uri] { "/h_abc.gif" { HTTP::respond 200 content [ifile get "h_abc_gif"] } "/" { HTTP::respond 200 content [ifile get "maintenance_wo_closebtn"] } } } }
This sorry page is a HTML page with images embedded.
I tried to replace the when HTTP_Request with when LB_Selected but it gives error. 01070151:3: Rule [/Common/user-maintenance_rule] error: /Common/user-maintenance_rule:4: error: [command is not valid in current event context (LB_SELECTED)][HTTP::respond 200 content [ifile get "h_abc_gif"] ]