Skip to content

Commit

Permalink
doc: update matcher configuration documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
magiconair committed Feb 11, 2018
1 parent a8e3641 commit 35f597b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/content/ref/proxy.matcher.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ title: "proxy.matcher"
* `prefix`: prefix matching
* `glob`: glob matching

When `prefix` matching is enabled then the route path must be a
prefix of the request URI, e.g. `/foo` matches `/foo`, `/foot` but
not `/fo`.

When `glob` matching is enabled the route is evaluated according to
globbing rules provided by the Go [`path.Match`](https://golang.org/pkg/path/#Match)
function.

For example, `/foo*` matches `/foo`, `/fool` and `/fools`. Also, `/foo/*/bar`
matches `/foo/x/bar`.

The default is

proxy.matcher = prefix

0 comments on commit 35f597b

Please sign in to comment.