Can I create virtual servers with the same ssl certificate?

2 posts / 0 new
Last post
#1 Fri, 05/11/2007 - 03:24
Joe
Joe's picture

Can I create virtual servers with the same ssl certificate?

Can I create virtual servers with same ssl certificate? The Plesk Panel can enable ssl in differents domains.

Fri, 05/11/2007 - 10:55
Joe
Joe's picture

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!

Topic locked