Forum Discussion
Gravanda_33760
Nimbostratus
Feb 18, 2009Beginner - rewrite and redirect URI question
I need to create an iRule to do a few things:
1. redirect incoming HTTPS requests to a specific URI
2. rewrite the URL to the virtual server
I have a VS that has 4...
hoolio
Cirrostratus
Feb 19, 2009Hi,
I'm not sure I understand what you're trying to do and what's failing. Are you wanting to decrypt the client SSL traffic, inspect/modify the HTTP headers and/or content and then re-encrypt the traffic to the server? Or are you wanting just client side SSL?
Is the issue that clients are being redirected by the application to an http://... location? If so, you can rewrite the redirects using the HTTP profile option for Rewrite Redirects. Or you could use an iRule:
when HTTP_RESPONSE {
Check if response is a redirect
if {[HTTP::is_redirect]}{
Replace http:// with https:// and port :82/ with /
HTTP::header replace Location [string map -nocase {http:// https:// :82/ /} [HTTP::header value Location]]
}
}
This is a bit of a stab in the dark. So if this doesn't address the issue, can you use a browser plugin like HttpFox for Firefox or Fiddler for IE to see exactly what's failing?
Thanks,
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