Page 1 of 1

SSL Virtualhosts

PostPosted: 23. April 2006 19:06
by Compact
Is it possible to make vistualhosts with ssl enabled? I want some virtualhost to be ssl virtualhosts too.

Thanks!

PostPosted: 01. May 2006 18:58
by capitalfellow
Yes! There are lots of different ways to enable it and it all depends on how you have things set up in httpd.conf and ssl.conf now. Here is mine:

in ssl.conf:
Listen 0.0.0.0:443

then in httpd.conf (or where you have your virtual hosts defined):

<IfDefine SSL>
<VirtualHost 152.15.47.139:443 >

all your virtual host stuff here

SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /path/to/your/certificate.crt
SSLCertificateKeyFile /path/to/your/server.key

SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
</VirtualHost>
</IfDefine>

PostPosted: 07. August 2006 15:18
by topperharly
Hi,

your configuration shows only one ssl vhost.

is this a really possible solution to activate two or more SSL VHOST´s on one apache (Version 2.2) server?

Greetz Topper

PostPosted: 07. August 2006 15:30
by capitalfellow
Yes just define all your virtualhosts inside the IfDefine directive. But Apache will only use the first certificate and key that you specify for serving all SSL content.