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...
jasona_40790
Jun 15, 2012Nimbostratus
I am running version 10.2.3 Build 112.0. The iRule correct re-writes from HTTP 200 to 300 without this line:
HTTP::header replace Retry-After: 10800
However, as soon as I add that line to the iRule, the VIP will no longer serve traffic as mentioned above:
when HTTP_REQUEST_SEND {
HTTP::header replace Retry-After: 10800
TCP::collect 12
}
when SERVER_DATA {
if {[findstr [TCP::payload 12] "200"] == "200"} {
TCP::payload replace 9 3 "503"
}
}
So, it appears that the HTTP_REQUEST_SEND is working.
Thanks for your help.
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