docs: Shorten the try_files expanded form too (#133)

This commit is contained in:
Francis Lavoie 2021-02-02 15:11:31 -05:00 committed by GitHub
parent 74db4350eb
commit b33d40f15c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,16 +21,14 @@ try_files <files...>
The `try_files` directive is basically a shortcut for:
```caddy-d
@try_files {
file {
try_files <files...>
}
}
@try_files file <files...>
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.
See the [`file` matcher](/docs/caddyfile/matchers#file) for more details.
## Examples