Forum Discussion

Vishal_96707's avatar
Vishal_96707
Icon for Nimbostratus rankNimbostratus
Feb 19, 2008

Selective HTTPS redirection

I am having following requirement in which the servers in the pool should talk to the virtual server using HTTP only while all other users should redirect to HTTPS.

The requirement for servers talking to the VS was fulfilled using the following iRule


when CLIENT_ACCEPTED {
  checks to see if client_addr = any in the class
  fmw_nodes class has servers in the pool
  if { [matchclass [IP::client_addr] equals $::fmw_nodes]} {
            snat 192.168.253.250
    } else {
            pool fwm-uat.bmc.com
    }
  }

The HTTP -> HTTPS redirection is configured using following iRule


when HTTP_REQUEST { 
     HTTP::redirect https://[HTTP::host][HTTP::uri]
}

How does the iRule evaluation takes place when you have more than one iRules?

I would appreciate any help in this regards. I am new to Big IP LTM

Thanks in advance