HTTP variables

$https variable (HTTP)

Indicates TLS on the current client connection using on or an empty value. A reverse proxy may terminate TLS earlier, so this is not automatically the original user-facing scheme. Version: Introduction not established. OSS documentation; verify build. No positional directive arguments. Example is a partial configuration fragment for a disposable synthetic lab; not a production logging policy.

Formal Syntax & Structure

nginx syntaxnginx
$https

Working Example

Example Snippetnginx
# Partial http-context example: isolated synthetic requests only; no real user data.log_format lab_https escape=json '{"observed":"$https"}';
Nginx Reference