docs: Clarify that try_files does not accept matcher (#17)

* Clarify the usage of `try_files` in Caddyfile, not supporting matchers

* Update src/docs/markdown/caddyfile/directives/try_files.md

Co-Authored-By: Matt Holt <mholt@users.noreply.github.com>

Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
This commit is contained in:
Francis Lavoie 2020-04-04 18:32:14 -04:00 committed by GitHub
parent 2973be1e45
commit eae81aed75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,6 +29,8 @@ The `try_files` directive is basically a shortcut for:
rewrite @try_files {http.matchers.file.relative} rewrite @try_files {http.matchers.file.relative}
``` ```
Note that this directive does not accept a matcher token. If you need more complex matching logic, then use the expanded form above as a basis.
## Examples ## Examples