I'm a linux newb. I'm setting up my own LAMP server on a VPS for the first time. Everything has gone well so far. I am hosting several domains on my VPS which only has 1 IP address (is this called name based virtual hosting?).
Two of the sites on my VPS, bikestore.com and toystore.com, will eventually become ecommerce websites that accept credit card information. I'm in the process of enabling an https version for both sites, so I purchased 1 new IP address for each.
I'm following this guide to install SSL certificates: http://www.linode.com/wiki/index.php/Apache2%5FSSL%5Fin%5FUbuntu
In creating a /etc/apache2/sites-available/bikestore-ssl and /etc/apache2/sites-available/toystore-ssl, will Apache know that https://bikestore.com should reference IP address 22.214.171.124 with ssl certificate bikestore.crt and that http://toystore.com should reference IP address 126.96.36.199 with ssl certificate toystore.crt?
When inspecting the contents of bikestore-ssl and toystore-ssl, it's not clear to me how apache will know which *-ssl file to assign to which https:// domain. So I hope someone here can explain what's happening and if I'm doing things correctly.