Forum Discussion
hooleylist
Nov 14, 2011Cirrostratus
Can you add a OneConnect profile to the virtual server and retest? If you're using SNAT you can use the default OneConnect profile. If you're not doing serverside source address translation, you should create a custom OneConnect profile with a /32 source mask.
Here's an iRule which should give better performance than the if/elseif/.../else chain:
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"/firstEnv*" {
pool firstEnv
log local0. "[IP::client_addr]:[TCP::client_port]: pool firstEnv for [HTTP::uri]"
}
"/secondEnv*" {
pool secondEnv
log local0. "[IP::client_addr]:[TCP::client_port]: pool secondEnv for [HTTP::uri]"
}
"/thirdEnv*" {
pool thirdEnv
log local0. "[IP::client_addr]:[TCP::client_port]: pool thirdEnv for [HTTP::uri]"
}
default {
HTTP::redirect "https://[HTTP::host]/firstEnv"
log local0. "[IP::client_addr]:[TCP::client_port]: Redirecting for [HTTP::uri]"
}
}
}
when HTTP_RESPONSE {
log local0. "[IP::client_addr]:[TCP::client_port]: [HTTP::status] response"
}
Aaron