Directive reference
proxy_pass
Forwards a request to an HTTP or HTTPS upstream.
| Syntax | proxy_pass http://address[/uri]; | proxy_pass https://address[/uri]; |
|---|---|
| Contexts | locationif in locationlimit_except |
| Default | none |
Behavior
The presence of a URI part controls whether the matched location prefix is replaced. The address may name an upstream block or use variables with a configured resolver.
Example
location /api/ {
proxy_pass http://backend/;
}