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.

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

Postby glitzi85 » 29. August 2008 18:40


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

For example:

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

<VirtualHost IP1:443>
   DocumentRoot /path
   #Configuring SSL with Cert for

<VirtualHost IP2:443>
   DocumentRoot /path2
   #Configuring SSL with Cert for

User avatar
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 52 guests