Forum Discussion
jasona_40790
Nimbostratus
14 years agoneed 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
Nimbostratus
14 years agoI 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.