前言
- nginx1.15
全局变量
$scheme
:请求的协议,比如http
、https
;- $https # 如果开启了 SSL 安全模式,值为 “on”,否则为空字符串。
$host
:请求的地址(IP 或域名),比如127.0.0.1
、localhost
、baidu.com
、www.baidu.com
;- $hostname 机器名使用 gethostname 系统调用的值
$time_local
:访问时间及时区;$status
:HTTP 响应代码 < 记录请求状态,比如200
、404
;$body_bytes_sent
:记录发送给客户端文件主体内容大小;$bytes_sent
: 客户端发送的字节数- $connection # TCP 连接的序列号
- $connection_requests # TCP