Forum Discussion
parag_rathiwade
Nimbostratus
Mar 23, 2012POP UP massage window
Hello all, i want to configure F5.. like if any virtual IP configured on F5 goes down... then users accessing web site correspond to that VIP should receive a POP-UP massage with "unavailabilty error massage" Can someone help me with irule or such F5 config.
2 Replies
- Hamish
Cirrocumulus
Define 'pop-up'...
If a user is idle and theres no current request, are you expecting a dialog to come up? Or are you just interested in active connections? Active connections are relatively easy. Its supported OOTB with the fallback URL. More complex solutions could be a bit more problematic, but could be solved with a piece of .js inserted to tickle the VS every minute or so (howev will increase your load considerably).
H - hoolio
Cirrostratus
As Hamish said, for active connections, you can just use a fallback URL on a custom HTTP profile to redirect requests to a separate host when the virtual server's pool is down. Or you could use HTTP::respond when [active_members [LB::server pool]]==0:when HTTP_REQUEST { Check if the current pool has no active members if {[active_members [LB::server pool]]==0}{ Send a 200 response with some HTML and caching headers set to prevent caching of the response HTTP::respond 200 content {maintenance} pragma no-cache cache-control no-cache } }
Aaron
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