Forum Discussion
forwarding requests to APM based on URI.
Hi Guy,
Use this iRule :when HTTP_REQUEST {
Check the requested HTTP uri
switch -glob [string tolower [HTTP::uri]] {
"/support*" -
"/helpdesk*" {
Disable APM for these uri
ACCESS::disable
}
default {
Enable APM for all other uris
ACCESS::enable
}
}
}
Hope it helps
Please mark it as answer if it works
Regards
- randylee168Aug 18, 2024Nimbostratus
Thanks, we tried the above to disable the pre-defined access policy APM for a few URLs:
but it keeps asking the credential again and again, it can not pass the login. any idea? thanks
- Lucas_ThompsonAug 20, 2024Employee
By default if you put an access profile on a vip, it suppresses all of the HTTP_REQUEST events until after the session is started.
You can turn that suppression off using this irule command:
https://clouddocs.f5.com/api/irules/ACCESS__restrict_irule_events.html
The reasoning about why it's like this is so that admins can re-use "non APM" irules on an APM virtual and have them work without modification.
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