joelvs_45274
May 16, 2008Nimbostratus
redirects before ssl on an ssl virtual server
I have a developer that has requested a redirect for his SSL protected site. I have tried multiple things with irules and not had any success.
The scenario is that we have a site https://www.xyz.com. The certificate was generated for www.xyz.com. However, users are hitting the site via https://xyz.com. Being as the www isn't in the hostname and error comes up that the cert doesn't match the hostname.
On the http virtual server, I added an iRule that redirects to www.xyz.com if the www doesn't exist. On the https virtual server, the certificate error comes up prior to it getting to the redirect. If I accept the certificate manually, it will redirect me to https://www.xyz.com
Is there a way to make the redirect happen before the ssl certificate is provided? The other option I had thought of is to use the iRule to enable ssl after the redirection, but I haven't been able to make that work successfully either.
Any suggestions would be greatly appreciated. I have done quite a bit with iRules, but am not an expert by any stretch of the imagination.