Forum Discussion
Phaneath_Phour1
Nimbostratus
Aug 17, 2018Redirect HTTP to HTTPS
Hello DC,
I'm new with F5 iRule. And right now, I have an application using http port 8080 and I would like to use SSL offload between client to F5 and keep the same port 8080 with https.
I...
jaikumar_f5
Noctilucent
Aug 17, 2018This has been asked often and multiple threads are there.
Offloading SSL traffic causes improper redirects or links to HTTP
The solution was to update the http response headers, something like below.
when HTTP_RESPONSE {
if { ( [HTTP::header exists Location] ) and ( [HTTP::header Location] contains "http://" ) } {
HTTP::header replace [string map -nocase {"http://" "https://"} [HTTP::header Location]]
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects