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 18, 2012Historic F5 Account
If you want to change more data then you would have to do the following. Note it will over write more of the page from the pool member
when HTTP_REQUEST_SEND {
TCP::collect 32
log local0. "Added header"
}
when SERVER_DATA {
if {[findstr [TCP::payload 32] "200"] == "200"} {
TCP::payload replace 9 23 "503 Service Unavailable"
}
}
when HTTP_RESPONSE {
HTTP::header replace Retry-After 10800
}
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