Forum Discussion
Dave_Horsey_225
Nimbostratus
Jan 25, 2006fail to other pool member based on http status code
We have two servers in a pool behind our LTM. The web servers serve traffic for around 4000 domains on one IP. We would like to have the LTM redirect traffic to the other pool member if either server reponds to a request with anything but a 200 OK response. Is this possible with iRules or a feature on the 9.2.2 release?
We are currently using BIG-IP 9.0.5 Build 59.7 on a BIG-IP 1500 LTM.
- Dave_Horsey_225
Nimbostratus
If we could make the http status code only trigger if the reponse is 400 or greater, that would be better since the sites will only repond with 200 OK or 301-302 redirects. - Just check the HTTP::status value on the response and issue a HTTP::redirect if it matches your criteria.
when HTTP_RESPONSE { if { [HTTP::status] >= 400 } { HTTP::redirect "http://www.someotherdomain.com/" } }
- I guess, I should have read your question closer. You were asking how to forward the request to a second pool based on the response.
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