I have been reviewing the other posts regarding the issue, but having some trouble understanding since I've tried implementing it but still not able to figure it out.
I have 2 servers.
The main server hosts domain server1.com
The 2nd server hosts domain server2.com
I setup a CNAME for sub.server1.com
=> sub.server2.com
When I go to https://sub.server2.com
it works because I set-up an SSL certificate on server2.com
(even though it is only a self-signed certificate).
But I can't set-up a certificate for sub.server1.com
because it's not hosted on server1.com
, it is a CNAME to server2.com
. Well I installed an SSL certificate on Server2. However, when I go to https://sub.server1.com
I get a Not Found
error, whereas https://sub.server2.com
works fine.
First question, did I set the SSL certificate on the correct server for the CNAME?
Second, How come it works directly using SSL (https://sub.server2.com
), but not found when I try through a CNAME (https://sub.server1.com
)?
Third, How do I get it the SSL to work on the CNAME (https://sub.server1.com
)?