Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 
Custom Alert Banner

Maintenance page setup - server code 200 --> 503

JP_G
Altostratus
Altostratus

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

1 REPLY 1

SanjayP
MVP
MVP

you are just changing the HTTP response code, it should be fine