Hosting 2 different SSL domains on the same IP [closed]
- by Jim
Possible Duplicate:
Multiple SSL domains on the same IP address and same port?
I have 2 different domains, domain1.com and domain2.net. Both require SSL certificates. I've got the certificates signed by a CA and now need to set them up on Apache.
I've got a single IP address and have found a post here: SSL site not using the correct IP in Apache and Ubuntu that apparently works for ubuntu but I am on CentOS and have not had the same luck trying that configuration. When I try that configuration, Apache dies telling me that the port is already in use:
(98)Address already in use: make_sock:
could not bind to address 0.0.0.0:443
I had SSL working for a single domain but now that I've added the second, I get a browser warning about the cert not belonging to the domain. How do I get both domains to work using virtual host containers?