Forum Discussion
Joshua_Rasnier
Nimbostratus
Feb 03, 2014Request 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 irule...
Kevin_Stewart
Employee
Feb 03, 2014OneConnect is definitely important. But also make sure you're accurately capturing the path. As a test, add some logging and see where traffic is actually going.
when HTTP_REQUEST {
log local0. "path = [HTTP::path]"
switch -glob [string tolower [HTTP::path]] {
"/path1*" {
log local0. "going to pool 1"
pool POOL_serverpool2
}
"/path2*" {
log local0. "going to pool 2"
pool POOL_serverpool2
}
"/path3*" {
log local0. "going to pool 3"
pool POOL_serverpool2
}
}
}
when SERVER_CONNECTED {
log local0. "LB server = [LB::server addr]"
switch [LB::server addr] {
"168.217.1.1" {
log local0. "168.217.1.1"
SSL::profile serverssl_server3
}
"168.217.1.2" {
log local0. "168.217.1.2"
SSL::profile serverssl_server4
}
"168.217.1.8" {
log local0. "168.217.1.8"
SSL::profile serverssl_server5
}
}
}
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