Forum Discussion

JP_G's avatar
JP_G
Icon for Altostratus rankAltostratus
Aug 25, 2021

Maintenance page setup - server code 200 --> 503

Hello,

I am trying to rewrite the following iRule from server code 200 to 503:

 

when HTTP_REQUEST {
  if {[active_members [LB::server pool]] < 1} {
  HTTP::respond 200 content [ifile get iFile_name]
  }
}

 

to this:

 

when HTTP_REQUEST {
  if {[active_members [LB::server pool]] < 1} {
  HTTP::respond 503 content [ifile get iFile_name]
  }
}

 

I can setup a test with my LTM but just thought I would ask before I commit to all the paperwork. Thanks for any comments.

--JP