Last updated
Was this helpful?
Last updated
Was this helpful?
$args
变量中存放了请求URL中请求参数。
比如:/www.namemerersource?arg1=value1 &arg2=value2 中的 "arg1=value1&arg2=value2"
$content_length
变量中存放了请求头中的 Content-length 字段
$content_type
变量中存放了请求头中的 Content-type 字段
$document root
变量中存放了针对当前请求的根路径
$document_uri
变量中存放了请求中的当前URI,并且不包括请参数。
比如:/www.namemerersource?arg1=value1 &arg2=value2 中的"/server/source"
$host
变量中存放了请求URL中的主机部分字段。
比如:/www.mywb.name/server 中的 "www.myweb.name"。
如果请求中的主机部分字段不可用或者为空,则存放Nginx配置中该server块中 server_name 指令的配置值。
$http_user_agent
变量中存放客户端的代理信息
$http_cookie
变量中存放客户端的 cookie信息
$limit_rate
变量中存放Nginx服务器对网络连接速率的限制,也就是Nginx配置中limit_rae指令的配置值
$remote_addr
变量中存放了客户端的地址
$remote_port
变量中存放了客户端与服务器建立连接的端☐号
$remote_user
变量中存放了客户端的用户名
$requst_body_file
变量中存放了发给后端服务器的本地文件资源的名称
$request_method
变量中存放了客户端的请求方式,如"GET"、‘POST"等
$request_filename
变量中存放了当前请求的资源文件的路径名
$request_ uri
变量中存放了当前请求的URI,并且带请求参数
$query_string
与变量$args含义相同
$scheme
变量中存放了客户端请求使用的协议,比如http"、https"和"ftp"等
$server_ protocol
变量中存放了客户端请求协议的版本,比如"HTTP/1.0"、"HTTP/1.1"等
$server_addr
变量中存放了服务器的地址
$server_name
变量中存放了客户端请求到达的服务器的名称
$server_ port
变量中存放了客户端请求到达的服务器的端☐号
$uri
与变量$document_uri含义相同