Forum Discussion
kaoutar
Cirrus
Mar 17, 2021iRule to assign ASM policy to VS by domain name
Hello All, In order to reduce the amunt of public IPs assigned to our Web App, we decide to deploy multi apps in one VS, Im looking for a way to assign ASM policies to each web app according to the ...
2019F5DevCentra
Cirrus
Mar 26, 2021Yes, for example you have a VIP that works off of HTTPS - Stream Enabled of course -
This would be the ASM Policy Applied on the VIP, as traffic passes you disable the policy to the specific Domain within the iRule.
when HTTP_REQUEST {
STREAM::disable
switch -glob [string tolower [HTTP::host]] {
"site1.com" {
pool /Common/Pool1Site1
}
"site2.com" {
pool /Common/Pool2Site2
ASM::disable
}
}
}
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