map: Fix example typo (close #258)

This commit is contained in:
Matthew Holt 2022-09-05 16:42:48 -06:00
parent be47c4989f
commit c67668615e
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5
2 changed files with 8 additions and 8 deletions

View file

@ -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
}
```