nginx全局变量
来源:互联网 发布:网络诈骗咨询电话 编辑:程序博客网 时间:2024/05/29 19:21
$args 此变量与请求行中的参数相等
$content_length 等于请求行的“Content_Length”的值。
$content_type 等同与请求头部的”Content_Type”的值
$document_root 等同于当前请求的root指令指定的值
$document_uri 与$uri一样
$host 与请求头部中“Host”行指定的值或是request到达的server的名字(没有Host行)一样
$limit_rate 允许限制的连接速率
$request_method 等同于request的method,通常是“GET”或“POST”
$remote_addr 客户端ip
$remote_port 客户端port
$remote_user 等同于用户名,由ngx_http_auth_basic_module认证
$request_filename 当前请求的文件的路径名,由root或alias和URI request组合而成
$request_body_file
$request_uri 含有参数的完整的初始URI
$query_string 与$args一样
$server_protocol 等同于request的协议,使用“HTTP/1.0”或“HTTP/1.1”
$server_addr request到达的server的ip,一般获得此变量的值的目的是进行系统调用。为了避免系统调用,有必要在listen指令中指明ip,并使用bind参数。
$server_name 请求到达的服务器名
$server_port 请求到达的服务器的端口号
$uri 等同于当前request中的URI,可不同于初始值,例如内部重定向时或使用index
- nginx全局变量
- Nginx 全局变量
- nginx全局变量
- nginx 全局变量
- nginx全局变量
- Nginx全局变量
- nginx 全局变量
- nginx 全局变量
- Nginx全局变量
- Nginx 内置全局变量
- nginx的全局变量参数解释
- nginx内置全局变量及含义
- nginx.c中的全局变量分析
- nginx内置全局变量及含义
- nginx内置全局变量及含义
- nginx -- 正则表达式和全局变量
- Nginx的location匹配规则和全局变量
- nginx location语法使用及一些全局变量
- linux下grep命令详解
- 重构方法
- objective-c过滤HTML标签
- Linux Stty
- ORACLE SQL 单引号双重角色
- nginx全局变量
- 如何设置eclipse编译时的的虚拟机大小
- [转]socket的send、recv阻塞设置阻塞超时时间
- SetFileAttributes 功能:修改文件属性
- CMWAP和CMNET 的主要区别与适用范围,与判断
- Warning :couldn"t find charset data for locale zh
- JS输入验证代码
- WebService学习资料
- 消息推送系统——(一)概念与原理