Forum Discussion

UT_313072's avatar
UT_313072
Icon for Nimbostratus rankNimbostratus
Mar 25, 2017

Redirect URL after SSL Offloading and before server SSL encryption

Dear all,

 

I need some help because I have an issue with SSL traffic.

 

I have a virtual server that decrypt (SSL Offloading with approuved certificat) and encrypt (serverside with self-signed certificat) the traffic. I use an existing server SSL profile named "serverssl-insecure-compatible".

 

I would like to apply a redirect just after the SSL offloading if the domain host match but I always received an SSL error. Here is my basic iRule:

 

Code
when HTTP_REQUEST {
  if {([HTTP::host] eq "a.mysite.com")}{
    HTTP::redirect "https://b.mysite.com/toto"
  }
  return
}

Hope you can help me !

 

Thanks in advance.

 

Best Regards,

 

5 Replies