HTTP variables
$nginx_version variable (HTTP)
Version identifier of the running Nginx binary. Useful in local diagnostic correlation, but it does not identify all distribution backports or enabled modules. 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
$nginx_versionWorking Example
Example Snippetnginx
# Partial http-context example: isolated synthetic requests only; no real user data.log_format lab_nginx_version escape=json '{"observed":"$nginx_version"}';