mirror of
https://github.com/caddyserver/website.git
synced 2025-05-06 19:57:13 -04:00
docs: Clarify Caddyfile address separators
This commit is contained in:
parent
49ed10d267
commit
642ad13cc4
1 changed files with 3 additions and 5 deletions
|
@ -178,13 +178,13 @@ If you specify a hostname, only requests with a matching Host header will be hon
|
|||
|
||||
Wildcards (`*`) may be used, but only to represent precisely one label of the hostname. For example, `*.example.com` matches `foo.example.com` but not `foo.bar.example.com`, and `*` matches `localhost` but not `example.com`. To catch all hosts, omit the host portion of the address.
|
||||
|
||||
If multiple sites share the same definition, you can list all of them together:
|
||||
If multiple sites share the same definition, you can list all of them together, separated by spaces or commas:
|
||||
|
||||
```caddy
|
||||
localhost:8080, example.com, www.example.com
|
||||
localhost:8080 example.com www.example.com
|
||||
```
|
||||
|
||||
or
|
||||
To specify multiple addresses on separate lines, use commas to indicate continuation:
|
||||
|
||||
```caddy
|
||||
localhost:8080,
|
||||
|
@ -192,8 +192,6 @@ example.com,
|
|||
www.example.com
|
||||
```
|
||||
|
||||
Notice how the commas indicate the continuation of addresses.
|
||||
|
||||
An address must be unique; you cannot specify the same address more than once.
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue