Forum Discussion

Valentine_96813's avatar
Valentine_96813
Icon for Nimbostratus rankNimbostratus
Jun 01, 2012

Pool redirection with SSL passthrough

I need to redirect to another pool if active members<1. The VS is in SSL passthrough. Will this work if I add the HTTP base profile to the VS?

 

 

rule SorryPage_redirect2 {

 

when HTTP_REQUEST {

 

if { [active_members [LB::server pool]] == 0 } {

 

pool Sorry-pool}

 

}

 

}

 

 

I've tried this but it did not work:

 

 

rule SorryPage_redirect {

 

when LB_FAILED{

 

if { [active_members abc.com-p443-pool] == 0 } {

 

pool Sorry-pool}

 

}

 

}

 

  • Hi Valentine,

    To add an HTTP profile and parse HTTP requests for an SSL VS, you'd need to add a client SSL profile configured with a valid server SSL certificate and key. If you want to keep the SSL VS unmodified, you should be able to check the pool in CLIENT_ACCEPTED instead:

    
    when CLIENT_ACCEPTED {
        if { [active_members [LB::server pool]] == 0 } {
            pool Sorry-pool
        }
    }
    

    Aaron