Forum Discussion
404 redirect with URL Persistance?
Hello,
We have 2 nodes in a pool with health monitors on Port 9120.
I was able to create a http profile that does a 404 redirect to a third node if the health monitor shows all server pool members down. Then it was asked that we keep URL persistence so if the redirect happens http://mysite.com stays http://mysite.com rather than .
I was able to test this iRule:
when CLIENT_ACCEPTED { if { [active_members [LB::server pool]] == 0 } { pool mythirdnodepool } }
Only issue is they want mythirdnode/a/404.html
Can anyone help me modify this iRule to make the redirect happen but instead of just the default /get have it be mysite.com/a/404.html?
Thank you
1 Reply
- Vijay_E
Cirrus
A word of caution: when faced with uncommon requests by customer, try to ask why they want it this specific way. Quite a few times, such requests are put forth based on faulty assumptions which can be solved in alternate simpler options or simple explanation.
when HTTP_REQUEST { if { [active_members [LB::server pool]] == 0 } { HTTP::uri "/a/404.html" pool mythirdnodepool } }
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
