HTTP directives

proxy_ssl_key_log directive (HTTP)

Export origin TLS session secrets in a diagnostic key-log file. Such material can expose traffic contents; never enable on real traffic as a routine logging option. Context: http, server, location. Documented default: none. Version: 1.27.2. Commercial subscription only. Example is recognition-only; never starts a service or writes session secrets. Partial configuration for an isolated synthetic lab; not a production policy.

Formal Syntax & Structure

nginx syntaxnginx
proxy_ssl_key_log path;

Parameters & Attributes

NameTypeDescription
pathrestricted lab file pathFor explicitly authorized synthetic debugging only; never commit or retain session secrets.

Working Example

Example Snippetnginx
proxy_ssl_key_log logs/synthetic-only.keys;
Nginx Reference