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 redirect to say site http://www.abc.com, then BigIP is rewriting the response location header to change 302 to https://www.abc.com.
We have set HTTP redirect rewrite to NONE, but even then bigip is modifying response header. We want HTTP response to be passed as is, but we are not sure as how to implement it. Any help in this respect would be greatly appreciated.
Regards,
dj
- hoolio
Cirrostratus
If you have redirect rewrite set to none on the HTTP profile, LTM shouldn't rewrite the redirect. Are you sure you're using the default HTTP profile on the virtual server? Or do you have any iRules that would potentially rewrite the response Location header? You could use a tcpdump to confirm the response received from the server versus what LTM sends to the client. - dj_22414
Nimbostratus
Thanks Aron for response. - hoolio
Cirrostratus
Is it possible that LTM is not rewriting the request, but the HTTP request the client makes is being redirected by that iRule to HTTPS? - dj_22414
Nimbostratus
No, certainly not. - dj_22414
Nimbostratus
Hi Aaron, - L4L7_53191
Nimbostratus
From SOL 6912: - dj_22414
Nimbostratus
Hi Matt, - dj_22414
Nimbostratus
I got following info from sol 6912: - hoolio
Cirrostratus
Hi Dhananjay,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]] } }
- dj_22414
Nimbostratus
Fantastic 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