cancel
Showing results for 
Search instead for 
Did you mean: 

Single Virtual Server with Multiple Access Profiles (APM) based on uri

Sajid
Cirrostratus
Cirrostratus

Hi Guys,

 

I have requirement to enable access profile (APM) for different URI on the a single Virtual Server. Currently, single Access Profile (Mapped) and enable based on the URI string (/fss/gentry).

 

iRule

when HTTP_REQUEST {

  if {( [HTTP::uri] contains "/fss/gentry" ) } {

   log local0. "APM Enable for -- my URI is [HTTP::uri]"

    return

  } else {

    ACCESS::disable

     log local0. "APM Disable -- APM Diable for [HTTP::uri]"

    return

  }

}

 

New requirement for URI "/sss/gmodify"

want to map different APM Profile

 

 

Regards,

Sajid

1 REPLY 1

boneyard
MVP
MVP

if you search a little here then that isn't possible like it is with some other "profiles"

 

here are some suggestions:

https://devcentral.f5.com/s/question/0D51T00006oH8n5/different-access-policies-per-virtual-server

 

and here:

https://devcentral.f5.com/s/question/0D51T00006kFz69/irule-to-select-different-access-profile-based-upon-host-header