atoth
Jan 24, 2014Cirrus
Client accessing both redirect and default pool in irule.
Working with the below irule. One of our app teams has complained that when the client is trying to access both the redirect and default pools as part of their of application, it fails. So what happens is their establishing a session, which takes them to the redirect pool, which works, but then the app sends them to the default pool, which fails. Any suggestions on what could be modified here?
when HTTP_REQUEST {
set usessl 0
switch -glob [HTTP::path] {
"/foo/bar/" -
"/foo/baa/" {
snat ~ip address~
set usessl 1
pool redirect-443 }
default {
set usessl 0
pool default-80
}
}
}
when SERVER_CONNECTED {
if { $usessl == 0 } {
SSL::disable
}
}