Forum Discussion
Mark_58201
Nimbostratus
Dec 29, 2008Redirect to another Website Irule Problem
I'm very new to writing iRules. We have BigIp's with v4.5.11 Build 147. What we would like to do is the following:
Two web servers are both down, or the backend database is down which is served by a Legato virtual address; if one or the other case occurs, we want the user directed to a "site under maintenance" page on another web server. I would imagine that the rule would involve checking whatever variable indicates that the nodes are down and including that in if-then-else statements. Lastly, what references does the DevCentral have that would be good for my learning more about writing iRules. Thanks.
Mark
- hoolio
Cirrostratus
Hi Mark, - Mark_58201
Nimbostratus
Aaron, - hoolio
Cirrostratus
Hi Mark, - Mark_58201
Nimbostratus
Aaron, - Mark_58201
Nimbostratus
Aaron - Progress! It came down to the fact that the site we are dealing with is an https site, not http, and as soon as we put in a fallback host that is an https site it worked. So we have to figure out how to send it to an http-only site, if that is possible. One other thing we would like to do is to send the request to the same "sorry - under maintenance" site when the backend database is down, which is a SQL server database running on a Legato pair that uses a virtual ip address. That I think might take an iRule. Thanks for all your help. - hoolio
Cirrostratus
If the main pool members are using SSL re-encryption, then the lower priority pool members will also need to accept HTTPS connections in order to accept the BIG-IP connections. I can't see a way around this as you cannon dynamically disable encryption within a single pool if the higher priority members are down.
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