Forum Discussion
wick54
Nimbostratus
Sep 25, 2019Block URIs and forward traffic 2 pools on same VIP
Hi Team, We currently have a requirement for single VIP to host 2 URLs and also check URI and only allow 4 specific URIs. I currently have it as 2 different VIPs with 2 pool and have an irule ...
Sep 26, 2019
Hi wick54,
Can you try this iRule?
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/abc*" -
"/bcd*" -
"/efg*" -
"/cvy*" {
switch -glob [string tolower [HTTP::host]] {
"abc.com" { pool abc_pool }
"xyz.com" { pool xyz_pool }
default {
# do nothing use the pool for VIP
# or drop
}
}
}
default { drop }
}
}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