Forum Discussion
Request always going to default
Hi guys,
Hope someone can help me with a problem I have been trying fix for one day.
I have a virtual server with client side ssl,server ssl and using cookie persistence. And has the below irules in the same order.
irule1
when HTTP_REQUEST {
switch -glob [HTTP::path] {
"/path1*" {
pool POOL_serverpool2
}
"/path2*" {
pool POOL_serverpool2
}
"/path3*" {
pool POOL_serverpool2
}
}
}
irule2
when SERVER_CONNECTED {
switch -glob [LB::server addr] {
"168.217.1.1" {
SSL::profile "serverssl_server3"
}
"168.217.1.2" {
SSL::profile "serverssl_server4"
}
"168.217.1.8" {
SSL::profile "serverssl_server5"
}
}
}
For some reason the first irule is never being matched even though my paths are correct or its not directing it to the non-default pool.
I have done this kind of rules before only difference is that irule2 was matching a pool and not individual servers, but cannot see how this would make a difference. In irule2 servers 3 (168.217.1.1) and 4 (168.217.1.2) are part of a default pool. But server 5(168.217.1.8) is part of POOL_serverpool2.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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