Forum Discussion

Thomas_Gobet's avatar
Thomas_Gobet
Icon for Nimbostratus rankNimbostratus
Sep 26, 2012

HTTPS equivalence of HTTP:host

Hi all,

 

 

I'd like to do some load-balancing with an Irule on HTTPS requests.

 

I've already done some rules for HTTP flow but what I need now is to have some security.

 

 

Is anybody can tell me how I can do the Irule below but for HTTPS requests ?

 

 

when HTTP_REQUEST {

 

switch [HTTP::host] {

 

host1 {

 

pool 1

 

}

 

host2 {

 

pool 2

 

}

 

host3 {

 

pool 3

 

}

 

default {

 

pool 4

 

}

 

}

 

}

 

 

Thanks for all.

 

2 Replies

  • nathe's avatar
    nathe
    Icon for Cirrocumulus rankCirrocumulus
    Thomas

     

     

    It's the same event for both. But for https traffic you'll need to terminate the SSL connection on the F5 so it can interrogate the traffic and the iRule can do its job. If you need it re-encrypted to the server, for example, then you can do this too with a serverside ssl profile.

     

     

    Rgds

     

    Nathan
  • Nathan,

     

     

    So many thanks for your answer.

     

    I had a problem to have it working and the problem zas not my Irule ;-)

     

     

    Thank you again for your quick answer.

     

     

    Rgds,

     

    Thomas