Forum Discussion
jaikumar_f5
Aug 14, 2018MVP
So something like below I feel,
when CLIENT_ACCEPTED {
Set a variable to track whether this is an HTTPS request
set https 0
}
when CLIENTSSL_HANDSHAKE {
There was a client side SSL handshake, so update the variable
set https 1
}
when HTTP_REQUEST {
If it's not an HTTPS connection, send a redirect
if {not ($https)}{
HTTP::redirect https://[getfield [HTTP::host] : 1]:8900[HTTP::uri]
}
}