SSL Virtualhosts

Problems with the Linux version of XAMPP, questions, comments, and anything related.

SSL Virtualhosts

Postby Compact » 23. April 2006 19:06

Is it possible to make vistualhosts with ssl enabled? I want some virtualhost to be ssl virtualhosts too.

Thanks!
Compact
 
Posts: 12
Joined: 02. November 2005 21:47

Postby capitalfellow » 01. May 2006 18:58

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>
User avatar
capitalfellow
 
Posts: 60
Joined: 19. July 2005 01:10
Location: Charlotte, NC USA
Operating System: OS X

Postby topperharly » 07. August 2006 15:18

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
topperharly
 
Posts: 1
Joined: 07. August 2006 14:51

Postby capitalfellow » 07. August 2006 15:30

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.
User avatar
capitalfellow
 
Posts: 60
Joined: 19. July 2005 01:10
Location: Charlotte, NC USA
Operating System: OS X


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 77 guests