I bought a wildcard SSL cert for my domain: *.xxx.com. I need to step multiple sites for different purpose. For example a.xxx.com for site A, b.xxx.com for site B. My configuration file is as follows:
But when I reload caddy, site A seems to be fine, but for site B, it says: There is already a certificate loaded for .xxx.com, so certificate for [.xxx.com] will not service that name
So How can I use the same cert for multi sites with different content? Thanks.
It’s just a startup notice to say that you’re loading a certificate that covers the same site multiple times, and it’s not loading the new certificate over the one it’s already loaded in.
In this case, you’re loading the same certificate in multiple sites, so there’s no problem at all. Caddy’s just letting you know how it’s handling the situation.