Forum Discussion
dj_22414
Nimbostratus
Aug 11, 2009Issue wrt HTTP redirect in response
Hi,
We have BigIP running as SSL terminator. We have irule for http requests to convert HTTP to HTTPS.
The issue is, if server behind bigip returns a HTTP response as 302 red...
hoolio
Cirrostratus
Aug 14, 2009Hi Dhananjay,
You can use an iRule to be more selective on which redirects to rewrite:
when HTTP_RESPONSE {
Check if server response is a redirect
if { [HTTP::header is_redirect] and [string tolower [HTTP::header Location]] contains "abc.com"} {
Log original and updated values
log local0. "Original Location header value: [HTTP::header value Location],\
updated: [string map -nocase "http:// https://" [HTTP::header value Location]]"
Do the update, replacing myold.hostname.com with mynew.hostname.com
HTTP::header replace Location [string map -nocase "http:// https://" [HTTP::header value Location]]
}
}
Aaron
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
