Forum Discussion

JonJuhler_46216's avatar
JonJuhler_46216
Icon for Nimbostratus rankNimbostratus
Jun 02, 2014

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_8424's avatar
    AaronB_8424
    Historic F5 Account
    Are 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

     

  • 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 }

     

  • 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.

     

  • So I need to put in a client SSL profile for the destination URL that I am tryiing to redirect the traffic to?

     

  • 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.