For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Sajid's avatar
Sajid
Icon for Cirrostratus rankCirrostratus
Apr 27, 2020

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

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

  • 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