Your code looks good for me. What are you using in "" ? Are you just placing the SSL pool? >Could you share the VS setup?
So this is the full irule. The destination vip makes use of SNI, so I've tried both changing the destination vip header to what it expects and using a custom server ssl profile together, but that didn't seem to work.
when HTTP_Request {
if { [HTTP::uri] starts with "/Fwoosh/" } {
set uri [string range [HTTP::uri] 8 end]
set usessl 1
HTTP::header replace "Host" ""
HTTP::uri "/Bar/$uri"
node 443
} else {
set usessl 0
}
}
when Server_Connected {
if { $usessl == 1 } {
ssl::profile
} else {
ssl::disable
}
when HTTP_Response {
if { [HTTP:is_redirect] } {
HTTP::header replace "Host" ""
}
}
Since v12 LTM policies are very clear and straightforward. In v11 they are usable but it's hard to >understand the GUI correctly.
On version 11.x code. Probably not going to upgrade to v12 for awhile.