Nginx:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
Kangkk​(留言 | 贡献)
第166行: 第166行:
| [[/favicon.ico|favicon.ico]] || 示例 || 示例
| [[/favicon.ico|favicon.ico]] || 示例 || 示例
|}
|}
== 变量 ==
<pre>
$args              请求头中的参数
$content_length    请求头中的 Content-length 字段
$content_type      请求头中的 Content-Type 字段
$document_root      当前请求在 root 指令中指定的值
$host              请求头中的 Host 头部,缺省值为服务器名称
$http_user_agent    客户端 agent 信息
$http_cookie        客户端 cookie 信息
$limit_rate        限制连接速率
$request_method    请求的方法
$remote_addr        客户端的 IP 地址。
$remote_port        客户端的端口。
$remote_user        已经经过 Auth Basic Module 验证的用户名
$request_filename  当前请求的文件路径,由 root 或 alias 指令与 URI 请求生成
$scheme            HTTP 方法,eq: http、https
$server_protocol    请求的协议,eq: HTTP/1.0、HTTP/1.1
$server_addr        服务器地址
$server_name        服务器名称
$server_port        服务器的端口
$request_uri        包含请求参数的 URI,eq: '/path/index.html?user=kangkk'
$uri                不包含请求参数的 URI,eq: '/path/index.html'
$document_uri      与 $uri 相同</pre>


== 语法 ==
== 语法 ==