Forum Discussion

Gambler_168259's avatar
Gambler_168259
Icon for Nimbostratus rankNimbostratus
Feb 14, 2015

iRule for incoming HTTPS based requests on F5 LTM?

I have a VS with https://10.50.180.14/mobilinkbioserver/.

 

For this VS with incoming HTTPS requests from the client i want to write an iRule for HTTPS so that if a complete URL contains the /mobilinkbioserver then load balance across the pool of two servers with servers 10.50.14.148:8080 & 10.50.180.14:7080

 

Or does the beloe mentioned iRule worked for the incoming HTTPS based requests??

 

when HTTP_REQUEST { switch -glob [HTTP::uri] { "/mobilinkbioserver*" { pool MobilinkBioServer HTTP::uri [string range [HTTP::uri] [string first "/" [HTTP::uri] 1] end] } } }

 

1 Reply

  • I think your iRule looks good. As long as you're offloading the ssl at the VIP, your iRule should work.

    when HTTP_REQUEST { 
        switch -glob [HTTP::uri] { 
            "/mobilinkbioserver*" { 
                pool MobilinkBioServer 
                HTTP::uri [string range [HTTP::uri] [string first "/" [HTTP::uri] 1] end] 
            } 
        } 
    }