mirror of
https://github.com/caddyserver/website.git
synced 2025-04-22 21:16:15 -04:00
docs: Minor improvements / fixes
This commit is contained in:
parent
6f712d4ee4
commit
54592ba4d5
4 changed files with 11 additions and 6 deletions
|
@ -66,16 +66,17 @@ Because matcher tokens all work the same, the various possibilities for the matc
|
|||
Many directives manipulate the HTTP handler chain. The order in which those directives are evaluated matters, so a default ordering is hard-coded into Caddy:
|
||||
|
||||
```
|
||||
root
|
||||
header
|
||||
|
||||
redir
|
||||
rewrite
|
||||
|
||||
root
|
||||
|
||||
uri
|
||||
try_files
|
||||
|
||||
basicauth
|
||||
headers
|
||||
request_header
|
||||
encode
|
||||
templates
|
||||
|
|
|
@ -11,9 +11,9 @@ Executes the response body as a [template](/docs/json/apps/http/servers/errors/r
|
|||
|
||||
```
|
||||
templates [<matcher>] {
|
||||
mime <types...>
|
||||
mime <types...>
|
||||
between <open_delim> <close_delim>
|
||||
root <path>
|
||||
root <path>
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -28,10 +28,10 @@ uri [<matcher>] strip_prefix|strip_suffix|replace \
|
|||
|
||||
## Examples
|
||||
|
||||
Strip `api/` from the beginning of all request paths:
|
||||
Strip `/api` from the beginning of all request paths:
|
||||
|
||||
```
|
||||
uri strip_prefix api/
|
||||
uri strip_prefix /api
|
||||
```
|
||||
|
||||
Strip `.php` from the end of all request paths:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue