端口443指向错误目录的多个虚拟主机

我在ubuntu apache2上创建了两个虚拟主机文件

   www.example1.com.conf 
   www.example2.com.conf

可以使用端口80正常工作。不带https。

我为443添加了以下代码

VirtualHost *:443>
    ServerAdmin info@example1
    ServerName  example1.com
    DocumentRoot /var/www/www.example1.com/
    #SSLEngine on
    #SSLCertificateFile /etc/ssl/example1.crt
    #SSLCertificateKeyFile /etc/ssl/example1.key
    #SSLCertificateChainFile /etc/ssl/SectigoRSADomainValidationSecureServerCA.crt
</VirtualHost>

<VirtualHost *:443>
    ServerAdmin info@example2
    ServerName  example2.com
    DocumentRoot /var/www/www.example2.com/

</VirtualHost>

Now, when i am opening https://www.example2.com/, i am seeing content of example1.com.

but if i do http://www.example2.com/ then content is ok.

您能建议出什么问题吗?