caddy/caddyconfig/httpcaddyfile
Bruno Teixeira Lopes 0e8eb41b87
Some checks failed
Tests / test (./cmd/caddy/caddy, ~1.26.0, macos-14, 0, 1.26, mac) (push) Has been cancelled
Tests / test (./cmd/caddy/caddy, ~1.26.0, ubuntu-latest, 0, 1.26, linux) (push) Has been cancelled
Tests / test (./cmd/caddy/caddy.exe, ~1.26.0, windows-latest, True, 1.26, windows) (push) Has been cancelled
Tests / test (s390x on IBM Z) (push) Has been cancelled
Tests / goreleaser-check (push) Has been cancelled
Cross-Build / build (~1.26.0, 1.26, aix) (push) Has been cancelled
Cross-Build / build (~1.26.0, 1.26, darwin) (push) Has been cancelled
Cross-Build / build (~1.26.0, 1.26, dragonfly) (push) Has been cancelled
Cross-Build / build (~1.26.0, 1.26, freebsd) (push) Has been cancelled
Cross-Build / build (~1.26.0, 1.26, illumos) (push) Has been cancelled
Cross-Build / build (~1.26.0, 1.26, linux) (push) Has been cancelled
Cross-Build / build (~1.26.0, 1.26, netbsd) (push) Has been cancelled
Cross-Build / build (~1.26.0, 1.26, openbsd) (push) Has been cancelled
Cross-Build / build (~1.26.0, 1.26, solaris) (push) Has been cancelled
Cross-Build / build (~1.26.0, 1.26, windows) (push) Has been cancelled
Lint / lint (push) Has been cancelled
Lint / lint-1 (push) Has been cancelled
Lint / lint-2 (push) Has been cancelled
Lint / govulncheck (push) Has been cancelled
Lint / dependency-review (push) Has been cancelled
OpenSSF Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
httpcaddyfile: fix incorrect error message on duplicate matchers (#7780)
Parse each matcher segment individually using NewDispenser(segment) instead
of DispenseDirective(dir), which coalesced all same-name segments into one
token stream. This caused the second definition name to be misinterpreted
as a matcher module name, producing 'module not registered: http.matchers.@name'
instead of the correct 'matcher is defined more than once' error.

By parsing segments individually, the existing duplicate check in
parseMatcherDefinitions naturally catches the duplicate on the second pass.

Signed-off-by: Brunotlps <brunoteixlps@gmail.com>
2026-05-30 07:05:41 +10:00
..
testdata caddyfile: Do not replace import tokens if they are part of a snippet (#5539) 2023-05-22 15:36:55 -06:00
addresses.go core: addresses.go funcs renames (#6622) 2024-10-21 08:02:29 -06:00
addresses_fuzz.go core: Windows service integration (#4790) 2022-07-29 14:06:54 -06:00
addresses_test.go
builtins.go httpcaddyfile: accept duration strings for log sampling interval (#7694) 2026-05-07 18:32:20 +00:00
builtins_test.go httpcaddyfile: accept duration strings for log sampling interval (#7694) 2026-05-07 18:32:20 +00:00
directives.go root: introduce down-propagating Helper.BlockState for other directives/plugins to use (#7594) 2026-03-28 17:44:42 +00:00
directives_test.go core: Implement socket activation listeners (#6573) 2024-09-30 10:55:03 -06:00
httptype.go httpcaddyfile: fix incorrect error message on duplicate matchers (#7780) 2026-05-30 07:05:41 +10:00
httptype_test.go httpcaddyfile: fix incorrect error message on duplicate matchers (#7780) 2026-05-30 07:05:41 +10:00
options.go metrics: Implement pushing via OLTP (#7664) 2026-04-25 06:52:08 -04:00
options_test.go httpcaddyfile: inherit global ACME issuer settings in tls shortcuts (#7617) 2026-04-26 23:39:57 +10:00
pkiapp.go pki: add per-CA configurable maintenance_interval and renewal_window_ratio (#7479) 2026-02-15 09:10:12 -05:00
pkiapp_test.go pki: add per-CA configurable maintenance_interval and renewal_window_ratio (#7479) 2026-02-15 09:10:12 -05:00
serveroptions.go caddyhttp: Option to disable 0-RTT (#7485) 2026-02-16 10:20:47 -07:00
shorthands.go caddyhttp: add replacer placeholders for escaped values (#7181) 2025-08-25 09:07:51 -06:00
tlsapp.go caddyfile: preserve implicit TLS issuer semantics (#7743) 2026-05-20 12:48:37 -04:00
tlsapp_test.go caddyfile: preserve implicit TLS issuer semantics (#7743) 2026-05-20 12:48:37 -04:00