Forum Discussion
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
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com