Installing more than one SSL certificate in Apache

A few changes need to be made to the Apache configuration in order to enable more than one SSL cert on a single server.

<IfModule mod_ssl.c>
NameVirtualHost *:443
Listen 443
</IfModule>

Make sure to remove the listener on port 443 from whichever other files might contain it.  These are different depending on Linux distribution.

  • CentOS – /etc/httpd/conf/ssl.conf
  • Ubuntu – /etc/apache2/ports.conf