Forum Discussion
jasona_40790
Nimbostratus
Jun 14, 2012need 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
Jun 15, 2012Richard,
Still not working. Here is the /var/log/ltm:
Jun 14 17:18:56 local/tmm1 err tmm1[7808]: 01220001:3: TCL error: iRule-Downtime503 - Illegal argument. Can't execute in the current context. (line 1) invoked from within "HTTP::header replace Retry-After: 10800"
Here is the iRule:
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"
}
}
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