Figured I’d write this one up quickly as it proved to annoy the hell out of me at 4:30am this morning getting it working on a live server.
Apache 2 can serve SSL content to multiple vhosts on your setup, provided they use different IP addresses, this post will give you a quick run down on how to do it.
First up we need to actually add the new IP to the machine in /etc/network/interfaces.
auto eth0 iface eth0 inet static address 10.1.1.7 netmask 255.255.255.0 gateway 10.1.1.1 auto eth0:1 iface eth0:1 inet static address 10.1.1.8 netmask 255.255.255.0
Replace my IPs with your own.
sudo /etc/init.d/networking restart
Next task is Apache 2 to configure it to listen on both IPs.