Multiple Certificates - no Wildcards

I am currently struggling with serving multiple sites:

siteA.org {
	proxy / 192.168.1.1 {
        transparent
    }
     
    gzip
     
    tls /.caddy/siteA-chain.pem /.caddy/siteA.key
}
 
siteB.org {
	proxy / 192.168.1.2 {
	    transparent
    }
     
    gzip
     
    tls /.caddy/siteB-chain.pem /.caddy/siteB.key
}

Accessing siteA works as expected, accessing siteB Caddy seems to pick the certificate for siteA - which of course will result in an error on the client side.

Am I doing anything wrong here?

Welcome.

Can you please provide your unedited caddyfile without reacted sitenames (they are available in CT logs and not sensitive) it is not possible to debug without unedited caddyfile.

1 Like

Nevermind. Apparently I was running an outdated docker container. After updating that to something newer, everything works as expected.

Thanks.

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.