Forum Discussion

Jason_19901's avatar
Jason_19901
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.

 

 

when HTTP_REQUEST {

 

Check host is www.test.com

 

if {[string tolower [HTTP::host]] eq "www.test.com"}{

 

 

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

 

}

 

}

 

}

 

}
  • Colin_Walker_12's avatar
    Colin_Walker_12
    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.

     

     

    Colin