Forum Discussion
gasch_297596
Nov 02, 2016Nimbostratus
Hello,
we found the solution for the Problem. A few years ago a person had the same problem:
https://devcentral.f5.com/questions/http-to-https-redirect-on-non-standard-port
So you just have to use the iRule:
when CLIENT_ACCEPTED {
set https 0
}
when CLIENTSSL_HANDSHAKE {
set https 1
}
when HTTP_REQUEST {
if {not ($https)}{
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
}
And to activate non-SSL in your SSL Profile under Local Traffic -> Profiles -> SSL -> Client -> (Profile you are using)
After that you are able to set the iRule on your SSL virtual server.