mirror of
https://github.com/caddyserver/website.git
synced 2025-04-24 14:06:17 -04:00
docs: Update for v2.3; refactor install information
We now have only 1 download page, yay. Install docs are organized better. Less confusing. Automatic HTTPS docs improved, and menu added. Other minor updates to bring up to speed for v2.3.
This commit is contained in:
parent
9dd9309a9b
commit
4827cff659
11 changed files with 186 additions and 159 deletions
|
@ -237,12 +237,13 @@ file {
|
|||
### header
|
||||
|
||||
```caddy-d
|
||||
header <field> <value>
|
||||
header <field> [<value>]
|
||||
```
|
||||
|
||||
By request header fields.
|
||||
|
||||
- `<field>` is the name of the HTTP header field to check.
|
||||
- If prefixed with `!`, the field must not exist to match (omit value arg).
|
||||
- `<value>` is the value the field must have to match.
|
||||
- If prefixed with `*`, it performs a fast suffix match.
|
||||
- If suffixed with `*`, it performs a fast prefix match.
|
||||
|
@ -267,6 +268,13 @@ Match requests with the `Foo` header containing `bar` OR `baz`.
|
|||
}
|
||||
```
|
||||
|
||||
Match requests that do not have the `Foo` header field at all:
|
||||
```caddy-d
|
||||
@not_foo {
|
||||
header !Foo
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
---
|
||||
### header_regexp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue