Forum Discussion
how to https redirect
I have our site correctly doing a redirect for a site in HTTP, but when I try to do the very same thing for HTTPS, it just hangs in my browser and doens't ever complete. I tried watching for the activity in the Development tools, but it doesn't ever log anything other than the reques going out. We have a couple of hundred domains that we want to have a redirected to another website. It isn't being blocked/getting to our firewall.
when HTTP_REQUEST { HTTP::redirect https://www.infousa.com/ }
7 Replies
- AaronB_8424Historic F5 AccountAre you redirecting to a site off of your LTM? If so, the rule should work as written above. You should add quotes around the domain name, but that should not affect the above example.
Hi!
Have to ask. Have you assigned the iRule to the virtual server server?
Can you please post your config?
/Patrik
- JonJuhler_46216
Nimbostratus
I tried the quotes and I get the same results. I have this assigned to a VIP, just like I have for my HTTP site. This is my config: ltm virtual ami-drlistexpress-https { destination 199.125.10.59:https ip-protocol tcp mask 255.255.255.255 profiles { http { } tcp { } } rules { https_for_infousa } source 0.0.0.0/0 source-address-translation { type automap } vlans-disabled }
- Cory_50405
Noctilucent
Jon,
You have to terminate SSL on your virtual server (assign a client SSL profile) in order for the redirect to work. Otherwise the LTM has no visibility into the layer 7 (HTTP) data to perform the redirect.
- JonJuhler_46216
Nimbostratus
So I need to put in a client SSL profile for the destination URL that I am tryiing to redirect the traffic to?
- Cory_50405
Noctilucent
You need to apply a client SSL profile to the 443 virtual server you have the iRule applied to. I'm assuming that you have a port 80 and a port 443 virtual server for this website.
- JonJuhler_46216
Nimbostratus
Thanks, that worked for me.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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