Forum Discussion
Tom_Farrar_1221
Nimbostratus
May 20, 2014iRule to map all and preserve HTTPS
Hi All,
Hope someone can point me in the right direction here!
We've an app being served up by Jetty on 8080/TCP, with a root of /console (so, 192.168.10.1:8080/console/). In from of this we've g...
Jason_40733
Cirrocumulus
May 20, 2014Here's a simple uri substitution we've used successfully. I believe there are better ( less resources ) to do it these days.
when HTTP_REQUEST {
if {[HTTP::uri] equals {/}} {
HTTP::uri {/console/}
}
}
This has worked for catching web servers that respond with an http uri instead of https...
when HTTP_RESPONSE {
if { [HTTP::header Location] contains "http://" } {
HTTP::header replace Location [string map {"http://" "https://"} [HTTP::header Location]]
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
