HTTP variables

$is_request_port variable (HTTP)

Colon separator when $request_port is available; empty otherwise. Useful when reconstructing an authority with a validated host and optional port. Version: 1.29.3. 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
$is_request_port

Working Example

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