Forum Discussion
iRULE to set Default page on maintenance
On request of the business we have been asked to have a solution to take down any of the STEP Screwfix portal down individually. This means that we get a 500 error page instead of the nice Screwfix Data Centre maintenance page (attached) that is set at this time from this url only: V&DR pre prod = https://stibo-portalv.kfplc.com/index.html Production = https://stibo-portal.kfplc.com/index.html which are linked to our 4 app servers.
2 Replies
- samstep
Cirrocumulus
It is quite difficult to understand your requirements from the description.
If your application servers in the pool start throwing HTTP error 500 when they are down you can simply create a custom HTTP monitor which fails on receiveing status code 500(should be a Reverse monitor) and attach that to your pool in addition to the default HTTP monitor.
So now if one of your pool members start throwing error 500 it will be flagged down by the monitor and no further traffic will be sent to it until it comes back up.
If you have HTTP Profile attached to your virtual server you can use the "Fallback Host" setting to be the URL of your maintenance/sorry URL so when all pool members are down the users will be redirected to the fallback URL to see the nice "Sorry we are down for maintenance" page.
No need for any iRules for a simple set up.
- SP_SINGH_279526
Nimbostratus
Thank you so much for your answer.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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