Forum Discussion
henrykay_123_28
Nimbostratus
Oct 04, 2016intercept response and modify http:// to https://
hi guys,
i am currently implementing SAP with F5, however we ran into 1 issue. The SAP is configured to only support http so SSL offload was done on F5.
i have 2 VS. one 443 and 1 80
the issue w...
TayF5un
Nimbostratus
Oct 04, 2016hi henrykay, you can try irule shown below;
when HTTP_REQUEST {
HTTP::header remove Accept-Encoding
STREAM::disable
}
when HTTP_RESPONSE {
if { [HTTP::header exists Location] } {
HTTP::header replace Location [string map {"http://" "https://"} [HTTP::header Location]]
}
if { [HTTP::header Content-Type] contains "text" } {
STREAM::expression {@http://@https://@}
STREAM::enable
}
}
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
