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:
Matthew Holt 2020-12-30 07:37:15 -07:00
parent 9dd9309a9b
commit 4827cff659
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5
11 changed files with 186 additions and 159 deletions

View file

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