Forum Discussion
shakalakka
Aug 22, 2022Altostratus
iRule and multiple switch-statements
So we need to filter based on both URIs and host-headers AND the source-IPs. I have tried using two switch-statements, with the same action for both if the client-IP-range matches - the first one wor...
T-Trust
Aug 25, 2022Cirrostratus
Hi shakalakka,
I hope this iRules will help you,
when HTTP_REQUEST {
set httphost [string tolower [HTTP::host]]
set httpuri [string tolower [HTTP::uri]]
if { ($httphost contains “x1”) && ($httpuri contains “y1”) } {
pool pool1
} elseif { ($httphost contains “x2”) && ($httpuri contains “y2”) } {
pool pool2
} else {
pool pool3
}
}
More information >> cloud-ttrust <<
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