Forum Discussion
HTTP after redirect, should be HTTPS
I get strange results. This is my (test) iRule:
when HTTP_REQUEST { if { [string tolower [ HTTP::host ] ] equals "inkoopveerle.neck.nl" } { pool pl-dmz-cl20inkp } elseif { [string tolower [ HTTP::host ] ] equals "proef.neck.nl"} { log local0. "before1 [HTTP::header Location]=[HTTP::header Location]" if { [HTTP::header exists Location] } { HTTP::header replace Location [string map -nocase {"http://" "https://"} [HTTP::header Location] ] log local0. "after2 [HTTP::header Location]=[HTTP::header Location]" } pool pl-dmz-cl20inkp-proef } else { HTTP::respond 200 content {No such Application} }
} when HTTP_RESPONSE { log local0. "before3 [HTTP::header Location]=[HTTP::header Location]" if { [HTTP::header exists Location] } { HTTP::header replace Location [string map -nocase {"http://" "https://"} [HTTP::header Location] ] log local0. "after4 [HTTP::header Location]=[HTTP::header Location]" } }
And this is the logging: Rule–ir-dmz-cl20inkp_80 : before1 [HTTP:header Location]= Rule–ir-dmz-cl20inkp_80 : before3 [HTTP:header Location]=
So: no info ... :-(
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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