Forum Discussion
snowfly_86261
Nimbostratus
Mar 12, 2010replace http:// to https:// problems
Dear all,
I have a problem about it
My Topology as under
client <-- HTTPS --> F5-LTM <-- HTTP --> httpServer
(1) client type in https://www...
hoolio
Cirrostratus
Mar 12, 2010Does the application actually include the :80 port number in the Location header value? If so, you'd need to use an iRule, I think:
when HTTP_RESPONSE {
Check if server response is a redirect
if { [HTTP::header is_redirect]} {
Log original and updated values
log local0. "Original Location header value: [HTTP::header value Location],\
updated: [string map -nocase "http:// https:// :80/ /" [HTTP::header value Location]]"
Do the update, replacing http:// with https:// and :80/ with /
HTTP::header replace Location \
[string map -nocase "http:// https:// :80/ /" [HTTP::header value Location]]
}
}
If it doesn't include the port, you could use a custom HTTP profile with rewrite redirects enabled.
Aaron
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