Je suis en utilisant cette référence pour configurer plusieurs certificats ssl sur la même adresse IP sur CENTOS 6.3 avec apache 2.2
<VirtualHost \*:443>
ServerAdmin webmaster@localhost
ServerName www.domain1.org
ServerAlias domain1.org
DocumentRoot /var/www/vhosts/domain1.org/
# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on
# A self-signed (snakeoil) certificate can be created by installing
# the ssl-cert package. See
# /usr/share/doc/apache2.2-common/README.Debian.gz for more info.
# If both key and certificate are stored in the same file, only the
# SSLCertificateFile directive is needed.
SSLCertificateFile /home/tmp/ssl/domain1.crt
SSLCertificateKeyFile /home/tmp/ssl/domain1.key
</VirtualHost>
<VirtualHost \*:443>
ServerAdmin webmaster@localhost
ServerName www.domain2.org
ServerAlias domain2.org
DocumentRoot /var/www/vhosts/domain2.org/
# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on
# A self-signed (snakeoil) certificate can be created by installing
# the ssl-cert package. See
# /usr/share/doc/apache2.2-common/README.Debian.gz for more info.
# If both key and certificate are stored in the same file, only the
# SSLCertificateFile directive is needed.
SSLCertificateFile /home/tmp/ssl/domain2.crt
SSLCertificateKeyFile /home/tmp/ssl/domain2.key
</VirtualHost>
Au démarrage, je reçois l'avertissement suivant :
\[warn\] \_default\_ VirtualHost overlap on port 443, the first has precedence
quand je visite les différents sites, il me montre toujours le premier certificat. qu'est-ce qui ne va pas ?