Forum Discussion
Reinhold_Just_7
Nimbostratus
Jun 26, 2008break redirect rewrite
hi,
my VS is running in https to the client and http to the servers. i have assigned a http profile in which i make a "Redirect Rewrite All". now it happens that i need to tranfer a fil...
hoolio
Cirrostratus
Jun 27, 2008Hello,
If you only want to rewrite selectively, I think you'd need to disable the HTTP profile option and use an iRule. Here's an example:
when HTTP_RESPONSE {
Check if response is a redirect and doesn't contain .wsdl
if {[HTTP::is_redirect] and not ([string tolower [HTTP::header value Location]] contains ".wsdl")}{
Replace http:// with https:// in the Location header value
HTTP::header replace Location [string map {http:// https://} [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