Forum Discussion

Jason_19901's avatar
Icon for Nimbostratus rankNimbostratus
Aug 15, 2011

iRule assistance for APM

I have an issue using APM and has 10 sites with one virtual IP. We got the APM working great. Now I want to add two sites to the same Virtual IP but these new sites do not require authentication. Is there something I can add to the policy to say something like, if you are going here, do not use APM or is that an iRule? I think an iRule but not exactly sure how to create that. Here is what I came up with.





Check host is


if {[string tolower [HTTP::host]] eq ""}{



Check if URI starts with /abc


if {[HTTP::uri] starts_with "/abc"}{


Check if URI is not exactly "/abc/test/login"


if {[HTTP::uri] ne "/abc/test/login"}{


Disable APM ACCESS:session disable









1 Reply

  • Colin_Walker_12's avatar
    Historic F5 Account
    In the APM's VPE you should be able to do a host check pre-authentiacation and split off to a pass-through branch for the given hosts. I don't believe you'll need an iRule for this at all.