CPanel - Wild card SSL - How to point *.domain.com to one root and sub.domain.com to another root

Posted by Harry Muscle on Pro Webmasters See other posts from Pro Webmasters or by Harry Muscle
Published on 2013-05-02T02:08:21Z Indexed on 2013/11/05 16:13 UTC
Read the original article Hit count: 464

Filed under:
|

I have a wildcard (*.domain.com) SSL certificate installed on my CPanel server. I have domain.com configured to point to /domain.com as its document root and use this wildcard SSL certificate. I also have sub.domain.com configured to point to /sub.domain.com as its document root. Btw, I have not explicitly configured configured sub.domain.com to use the wildcard SSL certificate.

When I go to "http://sub.domain.com" it goes to the correct document root, however my problem is that when I go to "https://sub.domain.com" it goes to the incorrect root, it goes to the root configured for the wildcard SSL. I've been trying to find information on how to go about configuring sub.domain.com to use the SSL certificate and go to the correct document root, however, so far I haven't found anything concrete. Do I use the same steps that I used for configuring the certificate for domain.com, but use the same certificate again and specify dev.domain.com as the domain that this certificate is for (instead of *.domain.com)? Or is there something else I should be doing?

This is a production server, so I don't want to play around too much. I'm hoping to find the correct information before proceeding.

© Pro Webmasters or respective owner

Related posts about ssl-certificate

Related posts about cpanel