Forum Discussion
oguzy
Feb 23, 2018Cirrostratus
Hi neilclark,
If your virtual server listens port 443 and server ssl profile selected by default, you can try the below code:
when RULE_INIT {
set ssl_state 1
}
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/xx/yyyy/" {
pool Pool1
}
"/AA/BB//CC" {
pool Pool2
$ssl_state 0
}
default { HTTP::respond 404 }
}
}
when SERVER_CONNECTED {
if { $ssl_state equals 0 } {
SSL::disable
}
}
Also please check iRule Event Order - HTTPS/SSL - Client & Server Side