Forum Discussion
Nicolas_JIMENEZ
Nimbostratus
Oct 02, 2018replace http response code of fallback host reply
Hi guys,
would there be a way to replace the response code (302 by default) by another one when the sorry page is triggered and fallback host is configured within the http profile?
Thanks
- Lee_Sutcliffe
Nacreous
You cannot do this from an HTTP profile but would be able to do so using a Local Traffic Policy or an iRule.
Hi Nicolas,
You can replace the Fallback Host feature using LB_FAILED event within an irule :
when LB_FAILED { HTTP::respond 302 observer Location "http://www.example.com/maintenance.page" Connection Close }
That's an example, you can customize the HTTP respond to fit your needs.
Regards
Yann
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