Forum Discussion

Cathi_Hahn_3185's avatar
Cathi_Hahn_3185
Icon for Nimbostratus rankNimbostratus
Apr 23, 2007

iRule to redirect to "down"page on other VS

I am trying to find a way to redirect an https virtual server/pool to a different virtual server/pool if all node members are unavailable. The profile setup to a fallback host does not work. When I change the profile on the VS from "none" to "down" where I have a downtime page identified in the fallback host (http://down.domain.com) the site locks up and fails with a page unavailable. I was hoping a simple iRule would perform the same purpose. Any ideas?

 

  • Here's what I use:

    
    when LB_FAILED { 
     switch [LB::server pool] { 
      default { 
       HTTP::redirect http://maint.mydomain.com
      } 
     } 
    }
  • I have tried something similar. The problem is that if I assign a profile - even the default http profile - the site quits working. After about 5 minutes it comes back with the standard Microsoft page cannot be displayed error.

     

     

    I have a number of other sites on this switch without the problem. The only difference is that this is a https site (not redirected).