Forum Discussion
Eireann78_19953
Nimbostratus
Sep 16, 2008Http to Https from HTTP_RESPONSE
Hi,
I am having an issue where I re-direct traffic to a VIP and use a class profile to change this to https.
This works fine but unfortunately the app then responds using http so to save...
Eireann78_19953
Nimbostratus
Sep 17, 2008Hi,
Just to close this off I used the rewrite redirects option on the http profile and it worked but ended up breaking other traffic that didn't need to be re-written. I used the iRule below to match on a URL basis.
when HTTP_RESPONSE {
if {[HTTP::is_redirect] and [HTTP::header value Location] contains "http://blah.test.xxx"}{
HTTP::header replace Location [string map {http: https:} [HTTP::header value Location]]
}
}
Thanks for your help,
D
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