HTTP directives

proxy_connect_timeout directive (HTTP)

HTTP, server or location. Default 60s. Limit for connecting to backend; practical OS limits can constrain it.

Formal Syntax & Structure

nginx syntaxnginx
proxy_connect_timeout time;

Parameters & Attributes

NameTypeDescription
timedurationNginx time value

Working Example

Example Snippetnginx
proxy_connect_timeout 2s;
Nginx Reference