diff --git a/caddy.go b/caddy.go index 8960bfbdd65..eaec7bc453a 100644 --- a/caddy.go +++ b/caddy.go @@ -648,6 +648,11 @@ func executeDirectives(inst *Instance, filename string, ServerBlockStorage: storages[i][dir], } + // only set up directives for the first key in a block + if j > 0 { + continue + } + setup, err := DirectiveAction(inst.serverType, dir) if err != nil { return err