Forum Discussion
Sandeep_Kumar_1
Nimbostratus
Jan 08, 2015apply different ASM policy based on URI content
Hi,
I have three URLs hosted on single server and mapped to one VS on ASM working with single ASM policy as of now.
Now, i want to create an irule on LTM to differentiate the traffic having...
nathe
Cirrocumulus
Jan 08, 2015Out of interest...an irule would use the ASM::enable command. See ASM__enable.
Something like this:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"*/car/*" {
ASM::enable /Common/car_policy
}
"*/house/*" {
ASM::enable /Common/house_policy
}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects