首页 > Web开发 > 详细

Nginx http系统变量

时间:2019-02-17 19:58:59      阅读:252      评论:0      收藏:0      [点我收藏+]

binary_remote_addr 对端二进制IPV4或IPV6 一般用作限制用户请求缓存key 

connection 递增链接序号

connection_requests  一条TCP链接上的请求数量

remote_addr 字符串格式IP地址

remote_port 字符串格式对端端口

proxy_protocol_addr 若使用了proxy_protocol协议 则返回协议中地址 否则返回空 一般用于反向代理取真正对端地址

proxy_protocol_port 同上取端口

server_addr 服务器端地址

server_prot 服务器端口

TCP_INFO Tcp内核层参数 优化性能

server_protocol 服务端协议 例如:http/1.1

request_time 请求耗时

server_name 匹配请求的server_name值

https 如果开启TLS/SSL 则返回ON 否则返回空

request_completion 请求处理完就返回OK 否则返回空

request_id 随机生成ID

request_filename 待访问文件的完整路径

document_root 由URI和root/alias规则生成的文件夹路径

realpath_root 将document_root中的软连接换成真实路径

limit_rate 返回或设置客户端响应速度上限 

body_bytes_sent 响应body包体长度

bytes_sent 全部http响应长度

status http返回码 如200

sent_trailer_名字 把响应结尾内容值返回

NGINX 系统变量

time_local 以本地时间标准输出时间‘

time_ios8601 ios8601格式输出时间

nginx_version nginx版本

pid  nginx所属worker进程id

pipe 是否用了管道

hostname 服务器主机名

msec 1970年至今的时间 单位是秒

Nginx http系统变量

原文:https://www.cnblogs.com/jackey2015/p/10392197.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!