Forum Discussion
Huub_Dewachter1
Nimbostratus
Feb 06, 2014HTTP after redirect, should be HTTPS
Hello all, here an irule newbee.
The problem:
Incoming is a HTTPS-request. I have a certificate installed, and so transfer HTTP to the server(s) behind the LB. They ask again other servers to do some...
Kevin_Stewart
Employee
Feb 06, 2014If it's as simple as http:// URLs bleeding through to the client from HTTP redirects, you can do something like this:
when HTTP_REQUEST {
if { [HTTP::header exists Location] } {
HTTP::header replace Location [string map -nocase {"http://" "https://"} [HTTP::header Location]]
}
}
That will replace any http:// in a redirect with https://.
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