Forum Discussion
JQB
Jul 30, 2020Nimbostratus
irule pool selection based on host AND path
Below is my current irule, which sends all requests with "/up/*" in the path to the faweb pool, otherwise, requests are sent to the default web pool. when HTTP_REQUEST {
switch -glob [string to...
- Aug 02, 2020
Hi JQB,
when HTTP_REQUEST { switch [string tolower [HTTP::host]] { "host1.website.com" - "host2.website.com" - "host3.website.com" { pool web } default { switch -glob [string tolower [HTTP::path]] { "/up/*" { pool faweb } default { pool web } } } } }
Aug 02, 2020
Hi JQB,
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
"host1.website.com" -
"host2.website.com" -
"host3.website.com" { pool web }
default {
switch -glob [string tolower [HTTP::path]] {
"/up/*" { pool faweb }
default { pool web }
}
}
}
}
- JQBSep 23, 2020Nimbostratus
Worked like a charm. Thank you.
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