Forum Discussion

truongh_36312's avatar
truongh_36312
Icon for Nimbostratus rankNimbostratus
Jan 07, 2014

Irule to strip out

My question to you is could the F5 be configured to take any https://aaa.bbb.gov/internal/* requests, strip out the /internal/ and forward the remaining request https://aaa.bbb.gov/* to a pool of Servers. Thanks a lot.

 

  • Absolutely. Something like this:

    when HTTP_REQUEST {
        if { [string tolower [HTTP::uri]] contains "/internal" } {
            HTTP::uri [string map -nocase {"/internal" ""} [HTTP::uri]]
        }
    }