Forum Discussion
pedinopa_170325
Nimbostratus
Mar 07, 2016iRule to select specific pool member
I am writing an irule to select a specific pool node based or the uri string.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/node1" { node 80 }
...
pedinopa_170325
Nimbostratus
Mar 13, 2016I got the irule to work using HTTP, now my challenge is getting it to work with HTTPS. Could I simply change the nodes in the pool to be 443 rather than 80 (assuming port 443 is bound to the server?
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"/Store091" {
node x.x.x.x 443
snat x.x.x.x 443 automap
}
"/Store092" {
node y.y.y.y 443
snat y.y.y.y 443 automap
}
}
}
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