diff options
author | Matt Holt <mholt@users.noreply.github.com> | 2020-04-01 10:58:29 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-01 10:58:29 -0600 |
commit | 73643ea736ca7c6a9ef32dbf78b38fbcdf5e92b2 (patch) | |
tree | 4338b090eece5c822860e5817f6207c187c35eee /modules/caddyhttp/reverseproxy | |
parent | 809e72792c501ceeadac4a3b9b327dfc575b9dfd (diff) |
caddyhttp: 'not' matcher now accepts multiple matcher sets and OR's them (#3208)
See https://caddy.community/t/v2-matcher-or-in-not/7355/
Diffstat (limited to 'modules/caddyhttp/reverseproxy')
-rw-r--r-- | modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go b/modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go index 2eb1f3d..fdf9818 100644 --- a/modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go +++ b/modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go @@ -128,8 +128,10 @@ func parsePHPFastCGI(h httpcaddyfile.Helper) ([]httpcaddyfile.ConfigValue, error TryFiles: []string{"{http.request.uri.path}/index.php"}, }), "not": h.JSON(caddyhttp.MatchNot{ - MatchersRaw: caddy.ModuleMap{ - "path": h.JSON(caddyhttp.MatchPath{"*/"}), + MatcherSetsRaw: []caddy.ModuleMap{ + { + "path": h.JSON(caddyhttp.MatchPath{"*/"}), + }, }, }), } |