mirror of
https://github.com/caddyserver/website.git
synced 2025-04-25 06:26:17 -04:00
Update docs for 2.6
This commit is contained in:
parent
c67668615e
commit
2ab3061111
12 changed files with 158 additions and 78 deletions
|
@ -231,38 +231,40 @@ Matcher tokens can be omitted entirely to match all requests; for example, `*` d
|
|||
|
||||
You can use any [Caddy placeholders](/docs/conventions#placeholders) in the Caddyfile, but for convenience you can also use some equivalent shorthand ones:
|
||||
|
||||
| Shorthand | Replaces |
|
||||
|-----------------|---------------------------------|
|
||||
| `{dir}` | `{http.request.uri.path.dir}` |
|
||||
| `{file}` | `{http.request.uri.path.file}` |
|
||||
| `{header.*}` | `{http.request.header.*}` |
|
||||
| `{host}` | `{http.request.host}` |
|
||||
| `{labels.*}` | `{http.request.host.labels.*}` |
|
||||
| `{hostport}` | `{http.request.hostport}` |
|
||||
| `{port}` | `{http.request.port}` |
|
||||
| `{method}` | `{http.request.method}` |
|
||||
| `{path}` | `{http.request.uri.path}` |
|
||||
| `{path.*}` | `{http.request.uri.path.*}` |
|
||||
| `{query}` | `{http.request.uri.query}` |
|
||||
| `{query.*}` | `{http.request.uri.query.*}` |
|
||||
| `{re.*.*}` | `{http.regexp.*.*}` |
|
||||
| `{remote}` | `{http.request.remote}` |
|
||||
| `{remote_host}` | `{http.request.remote.host}` |
|
||||
| `{remote_port}` | `{http.request.remote.port}` |
|
||||
| `{scheme}` | `{http.request.scheme}` |
|
||||
| `{uri}` | `{http.request.uri}` |
|
||||
| Shorthand | Replaces |
|
||||
|-----------------|-----------------------------------|
|
||||
| `{cookie.*}` | `{http.request.cookie.*}` |
|
||||
| `{dir}` | `{http.request.uri.path.dir}` |
|
||||
| `{err.*}` | `{http.error.*}` |
|
||||
| `{file}` | `{http.request.uri.path.file}` |
|
||||
| `{file.*}` | `{http.request.uri.path.file.*}` |
|
||||
| `{header.*}` | `{http.request.header.*}` |
|
||||
| `{host}` | `{http.request.host}` |
|
||||
| `{labels.*}` | `{http.request.host.labels.*}` |
|
||||
| `{hostport}` | `{http.request.hostport}` |
|
||||
| `{port}` | `{http.request.port}` |
|
||||
| `{method}` | `{http.request.method}` |
|
||||
| `{path}` | `{http.request.uri.path}` |
|
||||
| `{path.*}` | `{http.request.uri.path.*}` |
|
||||
| `{query}` | `{http.request.uri.query}` |
|
||||
| `{query.*}` | `{http.request.uri.query.*}` |
|
||||
| `{re.*.*}` | `{http.regexp.*.*}` |
|
||||
| `{remote}` | `{http.request.remote}` |
|
||||
| `{remote_host}` | `{http.request.remote.host}` |
|
||||
| `{remote_port}` | `{http.request.remote.port}` |
|
||||
| `{rp.*}` | `{http.reverse_proxy.*}` |
|
||||
| `{scheme}` | `{http.request.scheme}` |
|
||||
| `{tls_cipher}` | `{http.request.tls.cipher_suite}` |
|
||||
| `{tls_version}` | `{http.request.tls.version}` |
|
||||
| `{tls_client_fingerprint}` | `{http.request.tls.client.fingerprint}` |
|
||||
| `{tls_client_issuer}` | `{http.request.tls.client.issuer}` |
|
||||
| `{tls_client_serial}` | `{http.request.tls.client.serial}` |
|
||||
| `{tls_client_subject}` | `{http.request.tls.client.subject}` |
|
||||
| `{tls_client_certificate_pem}` | `{http.request.tls.client.certificate_pem}` |
|
||||
| `{tls_client_certificate_pem}` | `{http.request.tls.client.certificate_pem}` |
|
||||
| `{tls_client_certificate_der_base64}` | `{http.request.tls.client.certificate_der_base64}` |
|
||||
| `{uri}` | `{http.request.uri}` |
|
||||
| `{upstream_hostport}` | `{http.reverse_proxy.upstream.hostport}` |
|
||||
| `{rp.*}` | `{http.reverse_proxy.*}` |
|
||||
| `{vars.*}` | `{http.vars.*}` |
|
||||
| `{err.*}` | `{http.error.*}` |
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue