docs: Shorten the try_files expanded form too

This commit is contained in:
Francis Lavoie 2021-02-02 11:57:27 -05:00
parent 74db4350eb
commit ae2459ce40
No known key found for this signature in database
GPG key ID: 7D1A27F0725BE5D8

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