How do you configure 2 or more SSL virtual hosts?

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

How do you configure 2 or more SSL virtual hosts?

Postby ukprotect » 10. August 2008 19:02

How does one configure 2 or more SSL virtual hosts in xampp?

I have registered 2 domains and host them on my xampp server.
I am able to configure SSL on one virtual host but when I do the same on the second one, it will always use the SSL certificate of the first virtual host, and so a user will always get a warning message.

Is apache able to host more than 1 SSL virtual host? and if so, how do I configure this.

Thanks
Thinking is the hardest thing there is, which is the probable reason why so few engage in it.
ukprotect
 
Posts: 11
Joined: 10. August 2008 18:28

Postby glitzi85 » 29. August 2008 18:40

Hi,

you have to configure them on two different IPs, it is not possible to serve two different Domains over one IP (even example.com and www.example.com are different Domains!).

For example:

Code: Select all
Listen *:443
NameVirtualHost IP1:443
NameVirtualHost IP2:443

<VirtualHost IP1:443>
   DocumentRoot /path
   ServerName example.com
   #Configuring SSL with Cert for example.com
</VirtualHost>

<VirtualHost IP2:443>
   DocumentRoot /path2
   ServerName example.org
   #Configuring SSL with Cert for example.org
</VirtualHost>


glitzi
User avatar
glitzi85
 
Posts: 1920
Joined: 05. March 2004 23:26
Location: Dahoim


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 35 guests