Closed xfzka closed 4 years ago
I'm not familiar with Caddyfile. But when it comes to the config JSON, maybe you can add this directive into your server struct:
"automatic_https": {
"disable": true
}
the automatic generated json file only read siteA's cert. siteB is not read.
Oh, that's strange. Seems like a Caddyfile parser bug if it's not appearing in the adapted JSON.
The only difference I see between your siteA and siteB blocks are that your encode
and tls
directives are listed in reverse order. Do you mind trying while swapping those?
Thanks for the report, @xfzka -- and to @qwqVictor and @francislavoie for chiming in!
I've pushed a fix for this in 0b09b07 -- please try it out!
v2: can not skip automatic certificate even already set cert path
here is my Caddyfile, my cert file is get from
acme.sh
, their domain is .siteA.com and .siteB.comhere is out put
the automatic generated json file only read siteA's cert. siteB is not read.
when i manually add cert it is work
this config worked on V1 lower version.
Please help