docs: A few fixes, one more example (#164)

- Change wildcard certs patterns from h3 to h2 header
- Clean up `encode.md` a bit
- Add TOC entry for `handle_response`
- Add response matcher docs for `handle_response` (copied from `encode.md`)
- Add example for `handle_response` for handling by status code
This commit is contained in:
Francis Lavoie 2021-05-12 15:21:32 -04:00 committed by GitHub
parent 25742214dc
commit 9b4599eec9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 4 deletions

View file

@ -128,7 +128,7 @@ redir /remove/ /remove
Using a redirect, the client will have to re-issue the request, enforcing a single acceptable URI for a resource.
### Wildcard certificates
## Wildcard certificates
If you need to serve multiple subdomains with the same wildcard certificate, the best way to handle them is with a Caddyfile like this, making use of the [`handle`](/docs/caddyfile/directives/handle) directive and [`host`](/docs/caddyfile/matchers#host) matchers: