Forum Discussion
PacketHead_4009
Nimbostratus
Jul 30, 2010Simple Redirect iRule
Hello,
I need some quick help on how to create a basic redirect iRule. What I am trying to do is redirect any HTTP and HTTPS requests to mysite.web.com to .
The website mysite.web.com has two VIPs on the F5, one to accept HTTP requests and redirect to https://dev.fojo.com and the other to accept HTTPS requests and redirect them to the same site.
The HTTP redirect seems to work fine but the HTTPS VIP does not, it just seems to timeout. Can I accomplish this with one iRule or do I need to create a seperate iRule for HTTP and HTTPS?
It seems simple overall but I can't get HTTPS to HTTPS redirects working right.
Any help or info would be appreciated.
Regards,
James
- The_Bhattman
Nimbostratus
Hi James, - PacketHead_4009
Nimbostratus
Hello Bhattman, - Chris_Miller
Altostratus
If it has an SSL profile (with proper cert) and is also listening on port 443. - PacketHead_4009
Nimbostratus
Chris, - Chris_Miller
Altostratus
If a user tries to hit your VIP over port 443, you either need to send traffic to pool members listening on 443 that have certs, or your VIP needs to have a cert. A user is hitting your VIP with https://mysite.web.com so your VIP has to be setup properly to terminate that before the redirect can even work. Are your pool members for the https VIP listening on 443 or 80? - PacketHead_4009
Nimbostratus
I think I just picked port 80 pool members; I didn't think I need to have port 443 pool members since I was just doing a basic redirect. - Chris_Miller
Altostratus
Since the initial request is coming in over https and is destined for mysite.web.com, you need to terminate it like any other https traffic. You can either do it at the F5 (throw a clientssl profile on the VIP) or create a pool of servers listening on 443 and throw the cert on them. The user has to complete the SSL exchange before they'll continue.
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