mirror of
https://github.com/caddyserver/website.git
synced 2025-04-21 12:36:16 -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
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -289,7 +289,7 @@ Passive health checks happen inline with actual proxied requests:
|
|||
|
||||
### Streaming
|
||||
|
||||
By default, the proxy partially buffers and periodically flushes responses to the client for wire efficiency:
|
||||
By default, the proxy partially buffers the response for wire efficiency:
|
||||
|
||||
- **flush_interval** <span id="flush_interval"/> is a [duration value](/docs/conventions#durations) that adjusts how often Caddy should flush the response buffer to the client. By default, no periodic flushing is done. A negative value (typically -1) suggests "low-latency mode" which disables response buffering completely and flushes immediately after each write to the client, and does not cancel the request to the backend even if the client disconnects early. This option is ignored and responses are flushed immediately to the client if one of the following applies from the response:
|
||||
- `Content-Type: text/event-stream`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue