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 15, 2010As citizen_elah suggests, you could use getfield or check for :80/
when HTTP_RESPONSE {
Check if server response is a redirect and contains a reference to port 80
if { [HTTP::header is_redirect] && [HTTP::header value Location] contains ":80/"} {
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]]
}
}
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