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:
a.xxx.com {
proxy / http://127.0.0.1:3000
tls wildcard.crt wildcard.key
}
b.xxx.com {
proxy / http://127.0.0.1:3001
tls wildcard.crt wildcard.key
}
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.