caddy/caddyconfig/httpcaddyfile
Matthew Holt a66f461201
caddyfile: Sort site subroutes by key specificity, and make exclusive
In the v1 Caddyfile, only the first matching site definition would be
used, so setting these `Terminal: true` ensures that only the first
matching one is used in v2, too.

We also have to sort by key specificity... Caddy 1 had a special data
structure for selecting the most specific site definition, but we don't
have that structure in v2, so we need to sort by length (of host and
path, separately). For blocks where more than one key is present, we
choose the longest host and path (independently, need not be from same
key) by which to sort.
2020-01-15 13:51:12 -07:00
..
addresses_fuzz.go fuzz: introduce continuous fuzzing for Caddy (#2723) 2019-10-25 18:52:16 -06:00
addresses_test.go caddyfile: Less strict URL parsing; allows placeholders 2020-01-09 12:35:53 -07:00
addresses.go caddyfile: Less strict URL parsing; allows placeholders 2020-01-09 12:35:53 -07:00
builtins.go v2: Implement Caddyfile enhancements (breaking changes) (#2960) 2020-01-09 14:00:32 -07:00
directives.go caddyfile: Sort site subroutes by key specificity, and make exclusive 2020-01-15 13:51:12 -07:00
httptype.go caddyfile: Sort site subroutes by key specificity, and make exclusive 2020-01-15 13:51:12 -07:00
options.go v2: Module documentation; refactor LoadModule(); new caddy struct tags (#2924) 2019-12-10 13:36:46 -07:00
parser_test.go v2: Implement Caddyfile enhancements (breaking changes) (#2960) 2020-01-09 14:00:32 -07:00