mirror of
https://github.com/caddyserver/website.git
synced 2025-04-21 12:36:16 -04:00
docs: Shorten the try_files expanded form too (#133)
This commit is contained in:
parent
74db4350eb
commit
b33d40f15c
1 changed files with 3 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue