To finish it up 🙂
This question is quite clear explaining that without iRule correct serverssl is not selected by VS How can I configure Server SSL Profiles....
I am not sure but it seems that assigning multiple serverssl profiles allow iRule to select correct from assigned - so iRule can only select profile that is attached to VS - or it's not necessary?
Here is iRule:
when HTTP_REQUEST {
set hostname [getfield [HTTP::host] ":" 1]
}
when SERVER_CONNECTED {
switch -glob [string tolower [hostname]] {
"site1.domain.uk" { SSL::profile site1.domain.uk-server }
"site2.domain.uk" { SSL::profile site2.domain.uk-server }
}
}
Piotr