Vhost du domaine 1 dans C:\xampp\apache\conf\extra\sites\vhost1.conf
<VirtualHost *:80>
ServerAdmin admin@domaine1.com
DocumentRoot "C:\xampp\htdocs\sites1"
ServerName domaine1.com
ErrorLog "logs/domaine1.com-error.log"
CustomLog "logs/domaine1.com-access.log" common
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^/?(.*)$ https://domaine1.com/$1 [NE,L,R=301]
</VirtualHost>
<VirtualHost *:443>
ServerAdmin admin@domaine1.com
DocumentRoot "C:\xampp\htdocs\sites1"
ServerName domaine1.com
Alias /.well-know "C:\xampp\htdocs\sites1\.well-know"
ErrorLog "logs/domaine1.com-error.log"
CustomLog "logs/domaine1.com-access.log" common
SSLEngine on
SSLCertificateFile "C:\letsencrypt-simple\domaine1.com-crt.pem"
SSLCertificateKeyFile "C:\letsencrypt-simple\domaine1.com-key.pem"
SSLCertificateChainFile "C:\letsencrypt-simple\domaine1.com-chain.pem"
</VirtualHost>
Vhost du domaine 2 dans C:\xampp\apache\conf\extra\sites\vhost2.conf
<VirtualHost *:80>
ServerAdmin admin@domaine2.com
DocumentRoot "C:\xampp\htdocs\sites2"
ServerName domaine2.com
ErrorLog "logs/domaine2.com-error.log"
CustomLog "logs/domaine2.com-access.log" common
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^/?(.*)$ https://domaine2.com/$1 [NE,L,R=301]
</VirtualHost>
<VirtualHost *:443>
ServerAdmin admin@domaine2.com
DocumentRoot "C:\xampp\htdocs\sites2"
ServerName domaine2.com
Alias /.well-know "C:\xampp\htdocs\sites2\.well-know"
ErrorLog "logs/domaine2.com-error.log"
CustomLog "logs/domaine2.com-access.log" common
SSLEngine on
SSLCertificateFile "C:\letsencrypt-simple\domaine2.com-crt.pem"
SSLCertificateKeyFile "C:\letsencrypt-simple\domaine2.com-key.pem"
SSLCertificateChainFile "C:\letsencrypt-simple\domaine2.com-chain.pem"
</VirtualHost>
fichier httpd-vhosts.conf
dans C:\xampp\apache\conf\extra\
Include conf/extra/sites/*.conf