官方内置变量列表:
(ngx_http_core_module)
(ngx_stream_core_module)
(ngx_http_core_module)
(ngx_http_log_module)
(ngx_stream_core_module)
(ngx_http_core_module)
(ngx_http_log_module)
(ngx_stream_core_module)
(ngx_http_core_module)
(ngx_http_log_module)
$document_root
$document_uri
(ngx_http_geoip_module)
(ngx_stream_geoip_module)
(ngx_http_geoip_module)
(ngx_stream_geoip_module)
(ngx_http_geoip_module)
(ngx_stream_geoip_module)
(ngx_http_geoip_module)
(ngx_stream_geoip_module)
(ngx_http_geoip_module)
(ngx_stream_geoip_module)
(ngx_http_geoip_module)
(ngx_stream_geoip_module)
(ngx_http_geoip_module)
(ngx_stream_geoip_module)
(ngx_http_geoip_module)
(ngx_stream_geoip_module)
(ngx_http_geoip_module)
(ngx_stream_geoip_module)
(ngx_http_geoip_module)
(ngx_stream_geoip_module)
(ngx_http_geoip_module)
(ngx_stream_geoip_module)
(ngx_http_geoip_module)
(ngx_stream_geoip_module)
(ngx_http_geoip_module)
(ngx_stream_geoip_module)
(ngx_http_geoip_module)
(ngx_stream_geoip_module)
(ngx_http_geoip_module)
(ngx_stream_geoip_module)
(ngx_http_geoip_module)
(ngx_stream_geoip_module)
(ngx_http_core_module)
(ngx_stream_core_module)
(ngx_http_core_module)
(ngx_http_log_module)
(ngx_stream_core_module)
(ngx_http_core_module)
(ngx_stream_core_module)
(ngx_http_core_module)
(ngx_stream_core_module)
(ngx_http_core_module)
(ngx_http_log_module)
(ngx_http_core_module)
(ngx_stream_core_module)
(ngx_http_core_module)
(ngx_stream_core_module)
(ngx_http_core_module)
(ngx_http_log_module)
(ngx_http_core_module)
(ngx_http_log_module)
$secure_link
$secure_link_expires
(ngx_http_core_module)
(ngx_stream_core_module)
(ngx_http_core_module)
(ngx_stream_core_module)
(ngx_http_ssl_module)
(ngx_stream_ssl_module)
(ngx_http_ssl_module)
(ngx_stream_ssl_module)
(ngx_http_ssl_module)
(ngx_stream_ssl_module)
(ngx_http_ssl_module)
(ngx_stream_ssl_module)
(ngx_http_ssl_module)
(ngx_stream_ssl_module)
(ngx_http_core_module)
(ngx_http_log_module)
(ngx_http_core_module)
(ngx_http_log_module)
(ngx_stream_core_module)
(ngx_http_core_module)
(ngx_http_log_module)
(ngx_stream_core_module)
用在log中的变量 :
$bytes_sent
the number of bytes sent to a client
$connection
connection serial number
$connection_requests
the current number of requests made through a connection (1.1.18)
$msec
time in seconds with a milliseconds resolution at the time of the log write
$pipe
“p” if request was pipelined, “.”
otherwise
$request_length
request length (including request line, header, and request body)
$request_time
request processing time in seconds with a milliseconds resolution;
time elapsed between the first bytes were read from the client and
the log write after the last bytes were sent to the client
$status
response status
$time_iso8601
local time in the ISO 8601 standard format
$time_local
local time in the Common Log Format
In the modern nginx versions variables (1.3.2, 1.2.2), (1.3.8, 1.2.5), (1.3.8, 1.2.5), (1.3.8, 1.2.5), (1.3.9, 1.2.6), (1.3.9, 1.2.6), (1.3.12, 1.2.7), (1.3.12, 1.2.7), (1.3.12, 1.2.7),
and (1.3.12, 1.2.7)
are also available as common variables.
Header lines sent to a client have the prefix
“sent_http_”, for example, $sent_http_content_range.
阅读(4096) | 评论(0) | 转发(0) |