Forum Discussion
Deb_Allen_18
May 11, 2007Historic F5 Account
Hi Sake --
You might try using "LB::detach" to close the server side of the connection without affecting the client side:
when HTTP_REQUEST {
set hostname [HTTP::host]
}
when SERVERSSL_HANDSHAKE {
set sslcert [SSL::cert 0]
set cn [findstr [X509::subject $sslcert] "CN=" 3]
if { $cn ne $hostname } {
LB::detach
log local0. "Server-side connection closed: $cn != $hostname"
HTTP::respond 200 content "blah"
}
}
HTH/deb