Stream upstream directives
upstream (stream)
stream context; names a pool of peers. Default selection is weighted round robin.
Formal Syntax & Structure
nginx syntaxnginx
upstream name { ... }Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| name | identifier | Name a transport peer group; nested server statements define peers. |
Working Example
Example Snippetnginx
upstream tcp_echo { server 127.0.0.1:19112; }