Forum Discussion
Samir
Jan 07, 2021MVP
Try something below iRule, which may help you.
when HTTP_REQUEST {
log local0.info "SNI name: [SSL::sni name]"
if { [SSL::sni name] eq "www.yahoo.com" } {
HTTP::respond 301 Location "https://www.example.com[HTTP::uri]"
}
}
Reference article : https://clouddocs.f5.com/api/irules/SSL__sni.html