Forum Discussion
jasona_40790
Jun 14, 2012Nimbostratus
need to rewrite HTTP 200 status code to HTTP 503
Hello,
I am performing website maintenance and need to bring down our website for a few hours. I will be
serving a friendly maintenance page during this time. However, when Google...
Richard__Harlan
Jun 14, 2012Historic F5 Account
In your iRule you are sending a respond to the request so the LTM will not send the request to the pool. This pop up awhile ago to the iRule and did a small change so it should work in your setup.
https://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/39/aft/5814/showtab/groupforums/Default.aspx
when HTTP_REQUEST_SEND {
TCP::collect 12
}
when SERVER_DATA {
if {[findstr [TCP::payload 12] "200"] == "200"} {
TCP::payload replace 9 3 "503"
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects