码迷,mamicode.com
首页 > 其他好文 > 详细

nginx常量参数(十)

时间:2020-07-26 00:44:12      阅读:114      评论:0      收藏:0      [点我收藏+]

标签:col   请求头   worker   版本   识别   war   cookie   mit   序列   

$ancient_browser		如果浏览器被识别为旧式浏览器,该值等于 ancient_browser_value 的值
$arg_{name}           	请求中某个参数值 
$args               	请求url里的参数
$binary_remote_addr (ngx_http_core_module,ngx_stream_core_module)  二进制; 4个字节的IPV4或16个字节的IPV6
$body_bytes_sent        响应客户端的字节数,不包括响应头部
$bytes_received          从客户端收到的字节数
$bytes_sent (ngx_http_core_module, ngx_http_log_module,ngx_stream_core_module)  响应客户端的字节数
$connection (ngx_http_core_module,ngx_http_log_module,ngx_stream_core_module)  连接的序列号
$connection_requests (ngx_http_core_module, ngx_http_log_module) 连接当前的请求数量
$connections_active     当前连接数包括等待连接数
$connections_reading    正在读取请求数据的连接数
$connections_waiting    等待请求的空闲连接数
$connections_writing    正在响应数据的连接数
$content_length         请求头字段;请求内容大小
$content_type           请求头字段;请求内容类型
$cookie_                读取cookie_name的值
$date_gmt               当前的gmt时间
$date_local             当前时间local time zone
$document_root          当前请求root or alias 指令指向的值
$document_uri, $uri     当前请求的uri          
$gzip_ratio             压缩比
$host                   请求头里的host字段
$hostname (ngx_http_core_module,ngx_stream_core_module) 
$http2 
$http_                  请求头字段, 解析请求值
$https                  on https模式下运行,否则空字符串即可
$invalid_referer        nginx会通过查看referer字段和valid_referers后面的referer列表进行匹配,如果匹配到了就invalid_referer字段值为0 否则设置该值为1
$is_args                是否有参数
$limit_conn_status (ngx_http_limit_conn_module, ngx_stream_limit_conn_module)  连接超过策略
$limit_rate             限制同一IP流量
$limit_req_status       限制同一个IP某段时间的访问量
$memcached_key          从memcached_pass里读取一个存在的key
$modern_browser         如果浏览器被识别为新式浏览器,该值等于 modern_browser_value 的值
$msie                   ==1 就是任何IE的版本
$nginx_version (ngx_http_core_module,ngx_stream_core_module)  nginx版本
$pid (ngx_http_core_module,ngx_stream_core_module)    worker_process的进程号(PID)
$protocol               tcp | udp 
$proxy_add_x_forwarded_for 是用来识别通过HTTP代理或负载均衡方式连接到Web服务器的客户端最原始的IP地址的HTTP请求头字段
$proxy_host             代理服务 proxy_pass 的name:port
$proxy_port             代理服务 proxy_pass 的port

nginx常量参数(十)

标签:col   请求头   worker   版本   识别   war   cookie   mit   序列   

原文地址:https://www.cnblogs.com/pengsn/p/13377534.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!