Forum Discussion
John_Fretwell_1
Nov 06, 2006Historic F5 Account
L4 TCP redirect to simulate HTTP redirect
I have a requirement for a v9.2.3 Link Controller (no L7 iRules or HTTP redirect within the http profile) to be able to redirect to a holding page when all pool members are down.
Below is th...
John_Fretwell_1
Nov 10, 2006Historic F5 Account
I has some more time today to debug my iRule. It turns out that spaces are critical in the tcp response if it is to be interpreted as an http response. The working iRule is:
when CLIENT_ACCEPTED {
if {[active_members pool_80]< 2}{
TCP::respond "HTTP/1.0 302 Found\r\nServer: BIG-IP\r\nLocation: http://holdingpage.domain.com\r\nConnection: close\r\n\r\n"
TCP::close
return}
}
Many thanks for your interest though.
Best regards
jrf.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
