Forum Discussion
kaoutar
Mar 17, 2021Cirrus
iRule 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
Mar 26, 2021Cirrus
Yes, 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
}
}
}
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