Wildcard in Caddyfile?

Is there a way to use 1 Caddy configuration for any subdomain on a specific (sub)domain? I have a wildcard certificate that I want to use for X amount of subdomain requests that come in, since they all have to handle requests the exact same way. Is there a sane way to do this?

Yeah!

*.example.com {
  # Config here for requests to any subdomain of example.com
}
2 Likes

Thank you!

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