内置变量#

HTTP 模块

流模块

$acme_cert_key_<name>

$acme_cert_<name>

$ancient_browser

$angie_version

$angie_version

$arg_<name>

$args

$binary_remote_addr

$binary_remote_addr

$body_bytes_sent

$bytes_received

$bytes_sent

$bytes_sent

$connection

$connection

$connection_requests

$connection_time

$connections_active

$connections_reading

$connections_writing

$connections_waiting

$content_length

$content_type

$cookie_<name>

$date_local

$date_gmt

$document_root

$document_uri

$fastcgi_script_name

$fastcgi_path_info

$gzip_ratio

$host

$hostname

$hostname

$http2

$http3

$http_<name>

$https

$invalid_referer

$is_args

$limit_conn_status

$limit_conn_status

$limit_rate

$limit_req_status

$memcached_key

$modern_browser

$mqtt_preread_clientid

$mqtt_preread_username

$msec

$msec

$msie

$p8s_value

$pid

$pid

$pipe

$proxy_add_x_forwarded_for

$proxy_host

$proxy_port

$protocol

$proxy_protocol_addr

$proxy_protocol_addr

$proxy_protocol_port

$proxy_protocol_port

$proxy_protocol_server_addr

$proxy_protocol_server_addr

$proxy_protocol_server_port

$proxy_protocol_server_port

$proxy_protocol_tlv_<name>

$proxy_protocol_tlv_<name>

$query_string

$quic_connection

$rdp_cookie, $rdp_cookie_<name>

$realip_remote_addr

$realip_remote_addr

$realip_remote_port

$realip_remote_port

$realpath_root

$remote_addr

$remote_addr

$remote_port

$remote_port

$remote_user

$request

$request_body

$request_body_file

$request_completion

$request_filename

$request_id

$request_length

$request_method

$request_time

$request_uri

$scheme

$secure_link

$secure_link_expires

$sent_http_<name>

$sent_trailer_<name>

$server_addr

$server_addr

$server_name

$server_port

$server_port

$server_protocol

$session_time

$slice_range

$ssl_alpn_protocol

$ssl_alpn_protocol

$ssl_cipher

$ssl_cipher

$ssl_ciphers

$ssl_ciphers

$ssl_client_escaped_cert

$ssl_client_cert

$ssl_client_fingerprint

$ssl_client_fingerprint

$ssl_client_i_dn

$ssl_client_i_dn

$ssl_client_i_dn_legacy

$ssl_client_raw_cert

$ssl_client_raw_cert

$ssl_client_s_dn

$ssl_client_s_dn

$ssl_client_s_dn_legacy

$ssl_client_serial

$ssl_client_serial

$ssl_client_v_end

$ssl_client_v_end

$ssl_client_v_remain

$ssl_client_v_remain

$ssl_client_v_start

$ssl_client_v_start

$ssl_client_verify

$ssl_client_verify

$ssl_curve

$ssl_curve

$ssl_curves

$ssl_curves

$ssl_early_data

$ssl_preread_alpn_protocols

$ssl_preread_protocol

$ssl_preread_server_name

$ssl_protocol

$ssl_protocol

$ssl_server_name

$ssl_server_name

$ssl_server_cert_type

$ssl_server_cert_type

$ssl_session_id

$ssl_session_id

$ssl_session_reused

$ssl_session_reused

$status

$status

$time_iso8601

$time_iso8601

$time_local

$time_local

$tcpinfo_rtt, $tcpinfo_rttvar, $tcpinfo_snd_cwnd, $tcpinfo_rcv_space

$uid_got

$uid_reset

$uid_set

$upstream_addr

$upstream_addr

$upstream_bytes_received

$upstream_bytes_received

$upstream_bytes_sent

$upstream_bytes_sent

$upstream_cache_status

$upstream_connect_time

$upstream_connect_time

$upstream_cookie_<name>

$upstream_first_byte_time

$upstream_header_time

$upstream_http_<name>

$upstream_probe (PRO)

$upstream_probe (PRO)

$upstream_probe_body (PRO)

$upstream_probe_response (PRO)

$upstream_response_length

$upstream_response_time

$upstream_session_time_<name>

$upstream_status

$upstream_sticky_status

$upstream_sticky_status

$upstream_trailer_<name>

$upstream_queue_time

$uri