I need config that uses different certs on domain.com and *.domain.com. https://domain.com tells *.domain.com wildcard cert's name does not match. And https://sub.domain.com tells domain.com's cert does not match. How to set them work together at the same time. E.g. <VirtualHost domain.com:443> ServerName domain.com:443 SSLCertificateFile conf/server.crt .. and <VirtualHost *.domain.com:443> ServerName *.domain.com:443 SSLCertificateFile conf/wserver.crt .. But these two does not work together? What would be correct? Or is it even possible?