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 ...
Yann_Desmarest
Cirrus
Oct 02, 2018Hi 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
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