Stream proxy directives

proxy_pass (stream)

server context; sets a stream destination, not an HTTP URL.

Formal Syntax & Structure

nginx syntaxnginx
proxy_pass address;

Parameters & Attributes

NameTypeDescription
destinationhost:port | unix:path | upstream name | expressionSelect transport destination, without HTTP scheme or URI. Variable destination may require configured resolver.

Working Example

Example Snippetnginx
proxy_pass tcp_echo;
Nginx Reference