Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4176540
  • 博文数量: 601
  • 博客积分: 15410
  • 博客等级: 上将
  • 技术积分: 6884
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-16 08:11
个人简介

独学而无友,则孤陋而寡闻!

文章分类

全部博文(601)

文章存档

2020年(1)

2018年(4)

2017年(7)

2016年(42)

2015年(25)

2014年(15)

2013年(36)

2012年(46)

2011年(117)

2010年(148)

2009年(82)

2008年(37)

2007年(41)

分类: 系统运维

2016-08-07 20:54:15

官方内置变量列表:






(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.



阅读(4027) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~