docs: Minor improvements / fixes

This commit is contained in:
Matthew Holt 2020-03-22 16:14:17 -06:00
parent 6f712d4ee4
commit 54592ba4d5
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5
4 changed files with 11 additions and 6 deletions

View file

@ -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

View file

@ -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>
}
```

View file

@ -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: