Is this a solution for having multiple SSL certificates on the same IP
Posted
by Saif Bechan
on Server Fault
See other posts from Server Fault
or by Saif Bechan
Published on 2010-05-01T02:09:26Z
Indexed on
2010/05/01
2:19 UTC
Read the original article
Hit count: 325
I am running CentOS running on a VPS. I read some guides on having multiple SSL certificates on the same system, but I can not get the basics to work.
The guide I got that makes the most sense to me is the doing the following. In CentOS I can make virtual NIC's. So I made 2 virtual NIC's to start with. 192.168.10.1, 192.168.10.2.
Now I work in ISP manager Pro, so this is listening on my primary ip 1.1.1.1
For each website I have them listening on 192.168.10.1:80, 192.168.10.1:443
In the hosts file I made the following 2 entries
192.168.10.1 1st.com 192.168.10.2 2nd.com
Now the strange thing is that when I browser to 1st.com I do not get the website located at 192.168.10.1, I get the website located at my prim IP 1.1.1.1
Should I do something like forwarding or routing for this setup to work?
And the basic question: Will this setup even work? Are the SSL certificates based on the IP adress, or are the based on the host name, 1st.com and 2nd.com.
© Server Fault or respective owner