HTTP directives

proxy_pass directive (HTTP)

Location context, including supported if-in-location and limit_except cases. No default. Selects the upstream and optional URI mapping; ordinary prefix replacement differs from regex, named and variable cases.

Formal Syntax & Structure

nginx syntaxnginx
proxy_pass URL;

Parameters & Attributes

NameTypeDescription
URLstringHTTP(S) destination and optional URI

Working Example

Example Snippetnginx
proxy_pass http://127.0.0.1:18122/v1/;
Nginx Reference