Forum Discussion

maayan_yosef_20's avatar
maayan_yosef_20
Icon for Nimbostratus rankNimbostratus
Feb 18, 2018

F5 iRule with URI and Data Group

Hi Support, I need your help to set iRule that will check the split the traffic via URI string between our OnPrem and AWS appliction

 

the aws_app_pool point to AWS ELB via FQDN to

 

Example :

 

when HTTP_REQUEST { if { [string tolower [HTTP::uri] ] contains "DGLIST" } { pool app_pool" } else { pool aws_app_pool } }

 

This is OK ?

 

Thanks for the help!

 

1 Reply

  • Something like this:

    when HTTP_REQUEST {
        if { [class match [string tolower [HTTP::uri] ] contains DGLIST ] } { 
            pool app_pool
        }
        else {
            pool aws_app_pool
        }
    }