mirror of
https://github.com/caddyserver/website.git
synced 2025-04-24 14:06:17 -04:00
map: Fix example typo (close #258)
This commit is contained in:
parent
be47c4989f
commit
c67668615e
2 changed files with 8 additions and 8 deletions
|
@ -43,15 +43,15 @@ map [<matcher>] <source> <destinations...> {
|
|||
The following example demonstrates most aspects of this directive:
|
||||
|
||||
```caddy-d
|
||||
map {host} {my_placeholder} {magic_number} {
|
||||
example.com "some value" 3
|
||||
foo.example.com "another value"
|
||||
(.*)\.example.com "${1} subdomain" 5
|
||||
map {host} {my_placeholder} {magic_number} {
|
||||
example.com "some value" 3
|
||||
foo.example.com "another value"
|
||||
~(.*)\.example\.com$ "${1} subdomain" 5
|
||||
|
||||
~.*\.net$ - 7
|
||||
~.*\.xyz$ - 15
|
||||
~.*\.net$ - 7
|
||||
~.*\.xyz$ - 15
|
||||
|
||||
default "unknown domain" 42
|
||||
default "unknown domain" 42
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue