Forum Discussion

Dunleap_21354's avatar
Dunleap_21354
Icon for Nimbostratus rankNimbostratus
Mar 30, 2010

ssl rule to send to a specific https://host/page/paragraph

I'm needing to find a way to take any https://host1/request and send it to https://host1.domain.com/gw/webacc is there a way to do this using irules ?

 

 

  • Hi Dunleap

     

     

    Are you terminating the SSL on the load balancer?

     

     

    Thanks,

     

    Bhattman

     

  • yes, I have a Vs on the load balancer listening on 443, and a pool on the other side also on 443
  • this is only my second irule but, isn't there a way to say:

     

    when client connects on any port {

     

    set uri = /gw/webacc

     

    pool Pool_A

     

    }
  • Posted By Dunleap on 03/31/2010 7:38 AM

    yes, I have a Vs on the load balancer listening on 443, and a pool on the other side also on 443

    Hi Dunleap,

    Sounds more like you are passing SSL through the LTM rather then having the SSL certs on the LTM itself. If you are passing it through w/o the SSL certs on the LTM then the LTM will not be able to decrypt the URI which will allow the LTM make the necessary redirection work.

    If you have SSL on the LTM with the SSL cert on the LTM then you could use the following example iRule

     
     when HTTP_REQUEST { 
         if {([HTTP::host] eq "host1") and ([HTTP::uri] eq "/request")} { 
            HTTP::redirect "http://[HTTP::host].domain.com/gw/webacc" 
            } 
     } 
     

    I hope this helps

    Bhattman