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 file (wsdl) from the servers via http and not https. does any body know how i can break the redirect rewrite so when the client downloads this file it goes via http ?
any ideas, Reinhold
3 Replies
- hoolio
Cirrostratus
Hello,
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 - Reinhold_Just_7
Nimbostratus
hi Aaron,
thanks for the reply. i will test this. and thanks again in advance because i don't know when i can reply again.
regards Reinhold - Reinhold_Just_7
Nimbostratus
Hi Aaron,
works fine. thank you Reinhold.
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