mirror of
https://github.com/caddyserver/website.git
synced 2025-04-20 12:15:08 -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:
|
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
|
redir
|
||||||
rewrite
|
rewrite
|
||||||
|
|
||||||
|
root
|
||||||
|
|
||||||
uri
|
uri
|
||||||
try_files
|
try_files
|
||||||
|
|
||||||
basicauth
|
basicauth
|
||||||
headers
|
|
||||||
request_header
|
request_header
|
||||||
encode
|
encode
|
||||||
templates
|
templates
|
||||||
|
|
|
@ -28,10 +28,10 @@ uri [<matcher>] strip_prefix|strip_suffix|replace \
|
||||||
|
|
||||||
## Examples
|
## 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:
|
Strip `.php` from the end of all request paths:
|
||||||
|
|
|
@ -748,6 +748,10 @@ td code {
|
||||||
color: #ccc;
|
color: #ccc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.json .key a:not([href]) {
|
||||||
|
color: #bdd6f7
|
||||||
|
}
|
||||||
|
|
||||||
#hovercard,
|
#hovercard,
|
||||||
.arrow-box {
|
.arrow-box {
|
||||||
background-color: #0a192b;
|
background-color: #0a192b;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue