Forum Discussion

Misty_Spillers's avatar
Misty_Spillers
Icon for Nimbostratus rankNimbostratus
Aug 27, 2010

Mix and matching port 80 and port 443 pools

I have spent a bit of time searching only to find very old posts the reference things that do not exist. I would like to know how to create and iRule for the following.

 

 

The VS is 443 only, with the SSL profile serverssl (default) set. The rule kind of looks like the below example. I stripped it down to the basics just to try to get it to work. It seems like I need to turn off the SSL profile serverssl to get the second pool to work (then the first one doesn't) but I don't know how to automate it. I saw a post about adding SSL::disable in there but not really sure of the syntax.

 

 

 

when HTTP_REQUEST {

 

 

if { [string tolower [HTTP::uri]] starts_with "/app1" } {

 

pool app1_ssl_port_433

 

} else {

 

pool app2_port_80

 

}

 

}

 

 

if I'm doing this completely wrong let me know.

 

 

Thanks for any help, sorry this is so simple

 

2 Replies

  • Doesn't look like you can do SSL::disable from within the HTTP_REQUEST event so you might have to try the SERVER_CONNECTED event.

    Add this after your HTTP_REQUEST event.

    
    when SERVER_CONNECTED {
      if {[LB::server port] == 443 } {
        SSL::profile serverssl_profile
      } else {
        SSL::disable
      }
    }
    
  • Yep - that's right...you need to change "serverssl_profile" to the name of the server-side ssl profile you're using.