caddy/cmd
Matt Holt 7527c01705
v2: Implement Caddyfile enhancements (breaking changes) (#2960)
* http: path matcher: exact match by default; substring matches (#2959)

This is a breaking change.

* caddyfile: Change "matcher" directive to "@matcher" syntax (#2959)

* cmd: Assume caddyfile adapter for config files named Caddyfile

* Sub-sort handlers by path matcher length (#2959)

Caddyfile-generated subroutes have handlers, which are sorted first by
directive order (this is unchanged), but within directives we now sort
by specificity of path matcher in descending order (longest path first,
assuming that longest path is most specific).

This only applies if there is only one matcher set, and the path
matcher in that set has only one path in it. Path matchers with two or
more paths are not sorted like this; and routes with more than one
matcher set are not sorted like this either, since specificity is
difficult or impossible to infer correctly.

This is a special case, but definitely a very common one, as a lot of
routing decisions are based on paths.

* caddyfile: New 'route' directive for appearance-order handling (#2959)

* caddyfile: Make rewrite directives mutually exclusive (#2959)

This applies only to rewrites in the top-level subroute created by the
HTTP caddyfile.
2020-01-09 14:00:32 -07:00
..
caddy cmd: Move module imports into standard packages 2019-11-04 12:13:21 -07:00
commandfuncs.go Couple of minor fixes, update readme 2019-12-31 22:51:55 -07:00
commands.go Config auto-save; run --resume flag; update environ output (close #2903) 2019-12-31 16:56:19 -07:00
main.go v2: Implement Caddyfile enhancements (breaking changes) (#2960) 2020-01-09 14:00:32 -07:00
proc_posix.go cmd: Improve stop command by trying API before signaling process 2019-11-15 15:45:18 -07:00
proc_windows.go cmd: Improve stop command by trying API before signaling process 2019-11-15 15:45:18 -07:00