Multi domain single Caddy Server

(Jc) #1

Hi all,

I just compiled my first caddy server from source and I’m loving it. I have an ssl question that I wasn’t able to resolve searching this forum.

Caddyfile:, {
tls email@adress
} uses the default email ssl has a digicert ssl

Can I add the digicert to domain? If there is an example I could learn from this is a total newb question.

Thanks in advance

(Matthew Fay) #2

Hi @Crook, welcome to the Caddy community!

The tls directive applies to the entire site, so you’d have to open a separate site definition. {
} {
  tls [cert] [key]

If you’ve got additional configuration you want to share between the two, you could either copy+paste it between them, or use snippets:

(Sugarcube) #3

@Whitestrake thanks for mentioning snippets, very useful feature !

(Jc) #4

Thanks @Whitestrake I appreciate the support and welcoming!