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 22.214.171.124
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 126.96.36.199
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.