domains-setup-with-ssl

Example of IP based SSL setup (1.2.3.4 and 1.2.3.5 are IPs that point to your server):
1<VirtualHost 1.2.3.4:443>
2DocumentRoot /var/www/magento
3ServerName www.yourdomain1.com
4SSLEngine on
5SSLCertificateFile /path/to/your_certificate.crt
6SSLCertificateKeyFile /path/to/your_private.key
7SSLCertificateChainFile /path/to/chain_certificate.crt
8</VirtualHost>
9
10<VirtualHost 1.2.3.5:443>
11DocumentRoot /var/www/magento
12ServerName www.yourdomain2.com
13SSLEngine on
14SSLCertificateFile /path/to/your_certificate.crt
15SSLCertificateKeyFile /path/to/your_private.key
16SSLCertificateChainFile /path/to/chain_certificate.crt
17</VirtualHost>
Example of domain based SSL setup:
1<VirtualHost yourdomain1.com:443>
2DocumentRoot /var/www/yourdomain1.com
3ServerName www.yourdomain.com
4SSLEngine on
5SSLCertificateFile /path/to/your_domain_certificate.crt
6SSLCertificateKeyFile /path/to/your_private.key
7SSLCertificateChainFile /path/to/chain_certificate.crt
8</VirtualHost>
9
10<VirtualHost yourdomain2.com:443>
11DocumentRoot /var/www/magento
12ServerName www.yourdomain2.com
13SSLEngine on
14SSLCertificateFile /path/to/your_domain_certificate.crt
15SSLCertificateKeyFile /path/to/your_private.key
16SSLCertificateChainFile /path/to/chain_certificate.crt
17</VirtualHost>