HTTP variables
$document_uri variable (HTTP)
Alias of $uri; reflects the current normalized URI rather than the unchanged original request target. Internal routing can change it. 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
$document_uriWorking Example
Example Snippetnginx
# Partial http-context example: isolated synthetic requests only; no real user data.log_format lab_document_uri escape=json '{"observed":"$document_uri"}';