HTTP directives
proxy_socket_keepalive directive (HTTP)
Request OS TCP keepalive probes for origin connections; this does not create an HTTP connection pool. Context: http, server, location. Documented default: off. Version: 1.15.6. OSS documentation; verify build and version. Partial configuration for an isolated synthetic lab; not a production policy.
Formal Syntax & Structure
nginx syntaxnginx
proxy_socket_keepalive on | off;Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| state | on | off | Select whether this behavior is enabled. |
Working Example
Example Snippetnginx
proxy_socket_keepalive on;