Can I create virtual servers with same ssl certificate? The Plesk Panel can enable ssl in differents domains.
Ok, it's the solution: Add this line before virtualhosts:443
NameVirtualHost *:443 &ltVirtualHost *:443&gt ServerName www.domain.com SSLEngine on SSLCertificateFile /path/to/www.domain.com.cert SSLCertificateKeyFile /path/to/www.domain.com.key
DocumentRoot /www/vhosts/domain.com &lt/VirtualHost&gt
&ltVirtualHost *:443&gt ServerName www.domain.org SSLEngine on SSLCertificateFile /path/to/www.domain.com.cert SSLCertificateKeyFile /path/to/www.domain.com.key
DocumentRoot /www/vhosts/domain.org &lt/VirtualHost&gt
--
Check out the forum guidelines!
Ok, it's the solution:
Add this line before virtualhosts:443
NameVirtualHost *:443
&ltVirtualHost *:443&gt
ServerName www.domain.com
SSLEngine on
SSLCertificateFile /path/to/www.domain.com.cert
SSLCertificateKeyFile /path/to/www.domain.com.key
DocumentRoot /www/vhosts/domain.com
&lt/VirtualHost&gt
&ltVirtualHost *:443&gt
ServerName www.domain.org
SSLEngine on
SSLCertificateFile /path/to/www.domain.com.cert
SSLCertificateKeyFile /path/to/www.domain.com.key
DocumentRoot /www/vhosts/domain.org
&lt/VirtualHost&gt
--
Check out the forum guidelines!