mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-23 06:36:16 +08:00
caddyhttp: Update host matcher docs about wildcards
This commit is contained in:
parent
73643ea736
commit
0d2a3511dc
|
@ -42,6 +42,15 @@ type (
|
||||||
//
|
//
|
||||||
// Automatic HTTPS can be
|
// Automatic HTTPS can be
|
||||||
// [customized or disabled](/docs/modules/http#servers/automatic_https).
|
// [customized or disabled](/docs/modules/http#servers/automatic_https).
|
||||||
|
//
|
||||||
|
// Wildcards (`*`) may be used to represent exactly one label of the
|
||||||
|
// hostname, in accordance with RFC 1034 (because host matchers are also
|
||||||
|
// used for automatic HTTPS which influences TLS certificates). Thus,
|
||||||
|
// a host of `*` matches hosts like `localhost` or `internal` but not
|
||||||
|
// `example.com`. To catch all hosts, omit the host matcher entirely.
|
||||||
|
//
|
||||||
|
// The wildcard can be useful for matching all subdomains, for example:
|
||||||
|
// `*.example.com` matches `foo.example.com` but not `foo.bar.example.com`.
|
||||||
MatchHost []string
|
MatchHost []string
|
||||||
|
|
||||||
// MatchPath matches requests by the URI's path (case-insensitive). Path
|
// MatchPath matches requests by the URI's path (case-insensitive). Path
|
||||||
|
|
Loading…
Reference in New Issue
Block a user