mirror of
https://github.com/caddyserver/website.git
synced 2025-04-21 20:46:15 -04:00
Clarify that the JSON doc is the doc for matchers
This commit is contained in:
parent
f74f5ade03
commit
cd192a65c4
1 changed files with 2 additions and 2 deletions
|
@ -160,7 +160,7 @@ An address must be unique; you cannot specify the same address more than once.
|
||||||
|
|
||||||
By default, a directive that injects an HTTP handler applies to all requests (unless otherwise documented).
|
By default, a directive that injects an HTTP handler applies to all requests (unless otherwise documented).
|
||||||
|
|
||||||
**Request matchers** can be used to classify requests by a given criteria. This concept originates in the [underlying JSON](/docs/json/apps/http/servers/routes/match/) structure, and it's important to know how to use them in the Caddyfile. With matchers, you can specify exactly which requests a directive applies to.
|
**Request matchers** can be used to classify requests by a given criteria. This concept originates in the underlying JSON structure which also serves as [matcher documentation](/docs/json/apps/http/servers/routes/match/), and it's important to know how to use them in the Caddyfile. With matchers, you can specify exactly which requests a directive applies to.
|
||||||
|
|
||||||
To limit a directive's scope, use a **matcher token** immediately after the directive. It can be one of these forms:
|
To limit a directive's scope, use a **matcher token** immediately after the directive. It can be one of these forms:
|
||||||
|
|
||||||
|
@ -356,4 +356,4 @@ If present, it must be the very first block in the config.
|
||||||
|
|
||||||
It is used to set options that apply globally, or not to any one site in particular. Inside, only global options can be set; you cannot use regular site directives in them.
|
It is used to set options that apply globally, or not to any one site in particular. Inside, only global options can be set; you cannot use regular site directives in them.
|
||||||
|
|
||||||
[Learn more](/docs/caddyfile/options) about the global options block.
|
[Learn more](/docs/caddyfile/options) about the global options block.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue