Forum Discussion
Will_Petersen_9
Nimbostratus
Aug 29, 2006XML Redirect via iRule
Trying to determine how I can post an XML document to the client if both of the servers fail. In our case when the client sends a request we respond back with an XML document containing a url link. ...
bl0ndie_127134
Aug 31, 2006Historic F5 Account
You know the saying 'when you have a BigIP in you hand, every thing looks like iRules' ....
Well I am not sure why no one has told you that you are duplicating something that you paid big bucks for the BigIP to do.
Unless you have a really good reason to do an explicit status check your self, there is a far easier way to go about doing this. And that's to do a redirect on LB_FAILED (event which fires if your picked server is unvailable).
With that said, there is a bug when you use HTTP::redirect (it works most of the times though) on LB_FAILED and will be fixed on the next release(9.4). If you can't wait that long then you can always set the fallback host in the http profile or with the rule HTTP::fallback to re-direct the user to the sorry page with the XML information.
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