Forum Discussion

MikeBrockbank_3's avatar
MikeBrockbank_3
Icon for Nimbostratus rankNimbostratus
Apr 25, 2017

help with iRule and built in https_redirect working with it

I need to get this iRule to work,which it is not. But since it is on an HTTP cluster I also need to use the built-in sys_https_redirect to work AFTER this iRule takes effect. Can you help me with both of these problems? Here is the iRule.

 

when HTTP_REQUEST { switch [string tolower [HTTP::uri]] { "/reportal" { pool PROD_APPS5_JBOSS_8080_POOL }

 

} }

 

1 Reply

  • What is functionality that you are looking to achieve ?

    Why is the iRule not working ? Are you seeing errors in the logs ?

    You can change the "eq" in the following iRule to "contains" or "starts_with" depending on your needs:

    when HTTP_REQUEST { 
    if { [string tolower [HTTP::uri]] eq "/reportal" } { 
    pool PROD_APPS5_JBOSS_8080_POOL 
    }
    }