Forum Discussion
Siddharth_Sezhi
Nimbostratus
Sep 21, 2006Redirecting to a webpage when all the health check fails to the memerbs o the pool
Hi,
One of our customer is asking to setup a http redirection to a html page mentioned by them only if the health check fails to all members of the pool which are serving their website.
Their primary concern is due to outage when users hit their website they dont want to see the "page not found" instead they wanted to redirect to a url mentioned by them and this should happen only if the health check to all the members in the pool fails.
Please suggest me how to go abt with this request.
thank you
- Frederic_Zelle2
Nimbostratus
Hi - bl0ndie_127134Historic F5 AccountPlease also check this post. BTW, the problem mentioned on that thread has already been fixed and will be available on the release (v9.4) which should be coming out soon. Click here
- hoolio
Cirrostratus
Is there any reason to not just use the fallback host option in the HTTP profile? - Siddharth_Sezhi
Nimbostratus
LB Failed option wil redirect to a new pool if the LB couldnt get to the pool. My requirement says that when the httpd daemon stops running the server or the servers in the pool are down due to outage the client accessing the webpage will get error 404 "webpage not found" instead of getting this page client wanted to redirect a direct webpage given by them. I finally figured a solution but have no idea whether it wil work awaiting for customer approval to implement and check. - rick_masselle_1
Nimbostratus
I am running 9.1.2 and I am trying to accomplish similiar redirect. - rick_masselle_1
Nimbostratus
It seems when I used fallback host that it triigered when any node was unreachable ( not down)eg. server wa sbusy etc. I only want the redirection when all nodes in pool are down. - Colin_Walker_12Historic F5 AccountGotcha. Thanks for following up.
- Eric_Grepps_264
Nimbostratus
I am having the same issue, except I am redirecting many applications across many virtual servers.when RULE_INIT { set down_response " } when HTTP_REQUEST { switch [getfield [string tolower [HTTP::uri]] "/" 2] { app1 { if { [active_members p1] < 1 } { HTTP::respond $down_response } else { pool p1 } app2 { if { [active_members p2] < 1 } { HTTP::respond $down_response } else { pool p2 } ... appN { if { [active_members pN] < 1 } { HTTP::respond $down_response } else { pool p1 } default { pool p_default } } }
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