Forum Discussion
FSC-IT_27241
Nimbostratus
Oct 20, 2008Irule to redirect https to http
Situation:
There is a hardcoded URL that goes to https://junk.domain.com/ in an application. I want the f5 to redirect any traffic destined to that domain to a different site located e...
dennypayne
Employee
Oct 20, 2008The problem is that you can't invoke HTTP events such as redirects in an iRule without using an http profile on the virtual, and to do that, you've got to decrypt, which means handling the SSL cert first.
The only other option would be to process something in the CLIENT_ACCEPTED event, and there's no redirection there
Maybe something like this would work (haven't tried this):
when CLIENT_ACCEPTED {
SSL::disable
pool myPool
}
Where myPool would have the new domain's server as a pool member, but that's still not going to change the domain that the browser asked for. So, you'd likely get an SSL cert error when it did connect to the new server anyway.
So unfortunately, I don't think there's a way to do this.
Denny
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
