Forum Discussion
Kai_Wilke
Jan 15, 2019MVP
Hi Benoit C.,
to access mixed HTTP and HTTPS pools through a unified Virtual Server you have to assign a Server-SSL-Profile to begin with, and then selectively disable the Server-Side-SSL negotiation for any plaintext pool you are going to access...
when HTTP_REQUEST {
switch -exact -- [HTTP::host] {
"www.plaintext.com" {
pool my_plaintext_pool_http80
set disable_server_ssl 1
}
"www.encrypted.com" {
pool my_secure_pool_https443
set disable_server_ssl 0
}
default {
HTTP::respond 502 content "Access Denied" "Content-Type" "text/text" "Connection" "close"
}
}
}
when SERVER_CONNECTED {
if { $disable_server_ssl } then {
SSL::disable serverside
}
}
Cheers, Kai