diff --git a/modules/caddyhttp/matchers.go b/modules/caddyhttp/matchers.go index 9f84a90da..ca55241ef 100644 --- a/modules/caddyhttp/matchers.go +++ b/modules/caddyhttp/matchers.go @@ -343,6 +343,9 @@ outer: host = repl.ReplaceAll(host, "") if strings.Contains(host, "*") { + if host == "*" { + return true, nil + } patternParts := strings.Split(host, ".") incomingParts := strings.Split(reqHost, ".") if len(patternParts) != len(incomingParts) {