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> |
2 | DocumentRoot /var/www/magento |
3 | ServerName www.yourdomain1.com |
5 | SSLCertificateFile /path/to/your_certificate.crt |
6 | SSLCertificateKeyFile /path/to/your_private.key |
7 | SSLCertificateChainFile /path/to/chain_certificate.crt |
10 | < VirtualHost 1.2.3.5:443> |
11 | DocumentRoot /var/www/magento |
12 | ServerName www.yourdomain2.com |
14 | SSLCertificateFile /path/to/your_certificate.crt |
15 | SSLCertificateKeyFile /path/to/your_private.key |
16 | SSLCertificateChainFile /path/to/chain_certificate.crt |
Example of domain based SSL setup:
1 | < VirtualHost yourdomain1.com:443> |
2 | DocumentRoot /var/www/yourdomain1.com |
3 | ServerName www.yourdomain.com |
5 | SSLCertificateFile /path/to/your_domain_certificate.crt |
6 | SSLCertificateKeyFile /path/to/your_private.key |
7 | SSLCertificateChainFile /path/to/chain_certificate.crt |
10 | < VirtualHost yourdomain2.com:443> |
11 | DocumentRoot /var/www/magento |
12 | ServerName www.yourdomain2.com |
14 | SSLCertificateFile /path/to/your_domain_certificate.crt |
15 | SSLCertificateKeyFile /path/to/your_private.key |
16 | SSLCertificateChainFile /path/to/chain_certificate.crt |
Disqus comments