- 浏览: 40736 次
文章分类
最新评论
nginx内置变量
名称 | 版本 | 说明(变量列表来源于文件 ngx_http_variables ) |
$args | 1.0.8 | 请求中的参数; |
$binary_remote_addr | 1.0.8 | 远程地址的二进制表示 |
$body_bytes_sent | 1.0.8 | 已发送的消息体字节数 |
$content_length | 1.0.8 | HTTP请求信息里的"Content-Length"; |
$content_type | 1.0.8 | 请求信息里的"Content-Type"; |
$document_root | 1.0.8 | 针对当前请求的根路径设置值; |
$document_uri | 1.0.8 | 与$uri相同; |
$host | 1.0.8 | 请求信息中的"Host",如果请求中没有Host行,则等于设置的服务器名; |
$hostname | 1.0.8 | <wbr></wbr> |
$http_cookie | 1.0.8 | cookie 信息 |
$http_post | 1.0.8 | <wbr></wbr> |
$http_referer | 1.0.8 | 引用地址 |
$http_user_agent | 1.0.8 | 客户端代理信息 |
$http_via | 1.0.8 | 最后一个访问服务器的Ip地址。http://www.cnblogs.com/deng02/archive/2009/02/11/1387911.html |
$http_x_forwarded_for | 1.0.8 | 相当于网络访问路径。http://www.cnblogs.com/craig/archive/2008/11/18/1335809.html |
$is_args | 1.0.8 | <wbr></wbr> |
$limit_rate | 1.0.8 | 对连接速率的限制; |
$nginx_version | 1.0.8 | <wbr></wbr> |
$pid | 1.0.8 | <wbr></wbr> |
$query_string | 1.0.8 | 与$args相同; |
$realpath_root | 1.0.8 | <wbr></wbr> |
$remote_addr | 1.0.8 | 客户端地址; |
$remote_port | 1.0.8 | 客户端端口号; |
$remote_user | 1.0.8 | 客户端用户名,认证用; |
$request | 1.0.8 | 用户请求 |
$request_body | 1.0.8 | <wbr></wbr> |
$request_body_file | 1.0.8 | 发往后端的本地文件名称 |
$request_completion | 1.0.8 | <wbr></wbr> |
$request_filename | 1.0.8 | 当前请求的文件路径名 |
$request_method | 1.0.8 | 请求的方法,比如"GET"、"POST"等; |
$request_uri | 1.0.8 | 请求的URI,带参数; |
$scheme | 1.0.8 | 所用的协议,比如http或者是https,比如rewrite^(.+)$$scheme://example.com$1redirect; |
$sent_http_cache_control | 1.0.8 | <wbr></wbr> |
$sent_http_connection | 1.0.8 | <wbr></wbr> |
$sent_http_content_length | 1.0.8 | <wbr></wbr> |
$sent_http_content_type | 1.0.8 | <wbr></wbr> |
$sent_http_keep_alive | 1.0.8 | <wbr></wbr> |
$sent_http_last_modified | 1.0.8 | <wbr></wbr> |
$sent_http_location | 1.0.8 | <wbr></wbr> |
$sent_http_transfer_encoding | 1.0.8 | <wbr></wbr> |
$server_addr | 1.0.8 | 服务器地址,如果没有用listen指明服务器地址,使用这个变量将发起一次系统调用以取得地址(造成资源浪费); |
$server_name | 1.0.8 | 请求到达的服务器名; |
$server_port | 1.0.8 | 请求到达的服务器端口号; |
$server_protocol | 1.0.8 | 请求的协议版本,"HTTP/1.0"或"HTTP/1.1"; |
$uri | 1.0.8 | 请求的URI,可能和最初的值有不同,比如经过重定向之类的 |
名称 | 版本 | 说明(变量列表来源于文件 ngx_http_variables ) |
$args | 1.0.8 | 请求中的参数; |
$binary_remote_addr | 1.0.8 | 远程地址的二进制表示 |
$body_bytes_sent | 1.0.8 | 已发送的消息体字节数 |
$content_length | 1.0.8 | HTTP请求信息里的"Content-Length"; |
$content_type | 1.0.8 | 请求信息里的"Content-Type"; |
$document_root | 1.0.8 | 针对当前请求的根路径设置值; |
$document_uri | 1.0.8 | 与$uri相同; |
$host | 1.0.8 | 请求信息中的"Host",如果请求中没有Host行,则等于设置的服务器名; |
$hostname | 1.0.8 | <wbr></wbr> |
$http_cookie | 1.0.8 | cookie 信息 |
$http_post | 1.0.8 | <wbr></wbr> |
$http_referer | 1.0.8 | 引用地址 |
$http_user_agent | 1.0.8 | 客户端代理信息 |
$http_via | 1.0.8 | 最后一个访问服务器的Ip地址。http://www.cnblogs.com/deng02/archive/2009/02/11/1387911.html |
$http_x_forwarded_for | 1.0.8 | 相当于网络访问路径。http://www.cnblogs.com/craig/archive/2008/11/18/1335809.html |
$is_args | 1.0.8 | <wbr></wbr> |
$limit_rate | 1.0.8 | 对连接速率的限制; |
$nginx_version | 1.0.8 | <wbr></wbr> |
$pid | 1.0.8 | <wbr></wbr> |
$query_string | 1.0.8 | 与$args相同; |
$realpath_root | 1.0.8 | <wbr></wbr> |
$remote_addr | 1.0.8 | 客户端地址; |
$remote_port | 1.0.8 | 客户端端口号; |
$remote_user | 1.0.8 | 客户端用户名,认证用; |
$request | 1.0.8 | 用户请求 |
$request_body | 1.0.8 | <wbr></wbr> |
$request_body_file | 1.0.8 | 发往后端的本地文件名称 |
$request_completion | 1.0.8 | <wbr></wbr> |
$request_filename | 1.0.8 | 当前请求的文件路径名 |
$request_method | 1.0.8 | 请求的方法,比如"GET"、"POST"等; |
$request_uri | 1.0.8 | 请求的URI,带参数; |
$scheme | 1.0.8 | 所用的协议,比如http或者是https,比如rewrite^(.+)$$scheme://example.com$1redirect; |
$sent_http_cache_control | 1.0.8 | <wbr></wbr> |
$sent_http_connection | 1.0.8 | <wbr></wbr> |
$sent_http_content_length | 1.0.8 | <wbr></wbr> |
$sent_http_content_type | 1.0.8 | <wbr></wbr> |
$sent_http_keep_alive | 1.0.8 | <wbr></wbr> |
$sent_http_last_modified | 1.0.8 | <wbr></wbr> |
$sent_http_location | 1.0.8 | <wbr></wbr> |
$sent_http_transfer_encoding | 1.0.8 | <wbr></wbr> |
$server_addr | 1.0.8 | 服务器地址,如果没有用listen指明服务器地址,使用这个变量将发起一次系统调用以取得地址(造成资源浪费); |
$server_name | 1.0.8 | 请求到达的服务器名; |
$server_port | 1.0.8 | 请求到达的服务器端口号; |
$server_protocol | 1.0.8 | 请求的协议版本,"HTTP/1.0"或"HTTP/1.1"; |
$uri | 1.0.8 | 请求的URI,可能和最初的值有不同,比如经过重定向之类的 |
名称 | 版本 | 说明(变量列表来源于文件 ngx_http_variables ) |
$args | 1.0.8 | 请求中的参数; |
$binary_remote_addr | 1.0.8 | 远程地址的二进制表示 |
$body_bytes_sent | 1.0.8 | 已发送的消息体字节数 |
$content_length | 1.0.8 | HTTP请求信息里的"Content-Length"; |
$content_type | 1.0.8 | 请求信息里的"Content-Type"; |
$document_root | 1.0.8 | 针对当前请求的根路径设置值; |
$document_uri | 1.0.8 | 与$uri相同; |
$host | 1.0.8 | 请求信息中的"Host",如果请求中没有Host行,则等于设置的服务器名; |
$hostname | 1.0.8 | <wbr></wbr> |
$http_cookie | 1.0.8 | cookie 信息 |
$http_post | 1.0.8 | <wbr></wbr> |
$http_referer | 1.0.8 | 引用地址 |
$http_user_agent | 1.0.8 | 客户端代理信息 |
$http_via | 1.0.8 | 最后一个访问服务器的Ip地址。http://www.cnblogs.com/deng02/archive/2009/02/11/1387911.html |
$http_x_forwarded_for | 1.0.8 | 相当于网络访问路径。http://www.cnblogs.com/craig/archive/2008/11/18/1335809.html |
$is_args | 1.0.8 | <wbr></wbr> |
$limit_rate | 1.0.8 | 对连接速率的限制; |
$nginx_version | 1.0.8 | <wbr></wbr> |
$pid | 1.0.8 | <wbr></wbr> |
$query_string | 1.0.8 | 与$args相同; |
$realpath_root | 1.0.8 | <wbr></wbr> |
$remote_addr | 1.0.8 | 客户端地址; |
$remote_port | 1.0.8 | 客户端端口号; |
$remote_user | 1.0.8 | 客户端用户名,认证用; |
$request | 1.0.8 | 用户请求 |
$request_body | 1.0.8 | <wbr></wbr> |
$request_body_file | 1.0.8 | 发往后端的本地文件名称 |
$request_completion | 1.0.8 | <wbr></wbr> |
$request_filename | 1.0.8 | 当前请求的文件路径名 |
$request_method | 1.0.8 | 请求的方法,比如"GET"、"POST"等; |
$request_uri | 1.0.8 | 请求的URI,带参数; |
$scheme | 1.0.8 | 所用的协议,比如http或者是https,比如rewrite^(.+)$$scheme://example.com$1redirect; |
$sent_http_cache_control | 1.0.8 | <wbr></wbr> |
$sent_http_connection | 1.0.8 | <wbr></wbr> |
$sent_http_content_length | 1.0.8 | <wbr></wbr> |
$sent_http_content_type | 1.0.8 | <wbr></wbr> |
$sent_http_keep_alive | 1.0.8 | <wbr></wbr> |
$sent_http_last_modified | 1.0.8 | <wbr></wbr> |
$sent_http_location | 1.0.8 | <wbr></wbr> |
$sent_http_transfer_encoding | 1.0.8 | <wbr></wbr> |
$server_addr | 1.0.8 | 服务器地址,如果没有用listen指明服务器地址,使用这个变量将发起一次系统调用以取得地址(造成资源浪费); |
$server_name | 1.0.8 | 请求到达的服务器名; |
$server_port | 1.0.8 | 请求到达的服务器端口号; |
$server_protocol | 1.0.8 | 请求的协议版本,"HTTP/1.0"或"HTTP/1.1"; |
$uri | 1.0.8 | 请求的URI,可能和最初的值有不同,比如经过重定向之类的 |
$args 1.0.8 请求中的参数;
$binary_remote_addr 1.0.8 远程地址的二进制表示
$body_bytes_sent 1.0.8 已发送的消息体字节数
$content_length 1.0.8 HTTP请求信息里的"Content-Length";
$content_type 1.0.8 请求信息里的"Content-Type";
$document_root 1.0.8 针对当前请求的根路径设置值;
$document_uri 1.0.8 与$uri相同;
$host 1.0.8 请求信息中的"Host",如果请求中没有Host行,则等于设置的服务器名;
$hostname 1.0.8<wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"></span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$http_cookie 1.0.8 cookie 信息</span><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$http_post 1.0.8</span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"></span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$http_referer 1.0.8 引用地址</span><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$http_user_agent 1.0.8 客户端代理信息</span><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$http_via 1.0.8 最后一个访问服务器的Ip地址。</span><a target="_blank" href="http://www.cnblogs.com/deng02/archive/2009/02/11/1387911.html" style="text-decoration:none; color:rgb(157,82,0); font-family:simsun; font-size:14px; line-height:21px">http://www.cnblogs.com/deng02/archive/2009/02/11/1387911.html</a><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$http_x_forwarded_for 1.0.8 相当于网络访问路径。</span><a target="_blank" href="http://www.cnblogs.com/craig/archive/2008/11/18/1335809.html" style="text-decoration:none; color:rgb(157,82,0); font-family:simsun; font-size:14px; line-height:21px">http://www.cnblogs.com/craig/archive/2008/11/18/1335809.html</a><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$is_args 1.0.8</span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"></span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$limit_rate 1.0.8 对连接速率的限制;</span><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$nginx_version 1.0.8</span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"></span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$pid 1.0.8</span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"></span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$query_string 1.0.8 与$args相同;</span><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$realpath_root 1.0.8</span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"></span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$remote_addr 1.0.8 客户端地址;</span><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$remote_port 1.0.8 客户端端口号;</span><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$remote_user 1.0.8 客户端用户名,认证用;</span><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$request 1.0.8 用户请求</span><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$request_body 1.0.8</span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"></span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$request_body_file 1.0.8 发往后端的本地文件名称</span><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$request_completion 1.0.8</span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"></span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$request_filename 1.0.8 当前请求的文件路径名</span><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$request_method 1.0.8 请求的方法,比如"GET"、"POST"等;</span><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$request_uri 1.0.8 请求的URI,带参数;</span><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$scheme 1.0.8 所用的协议,比如http或者是https,比如rewrite^(.+)$$scheme://example.com$1redirect;</span><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$sent_http_cache_control 1.0.8</span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"></span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$sent_http_connection 1.0.8</span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"></span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$sent_http_content_length 1.0.8</span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"></span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$sent_http_content_type 1.0.8</span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"></span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$sent_http_keep_alive 1.0.8</span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"></span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$sent_http_last_modified 1.0.8</span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"></span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$sent_http_location 1.0.8</span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"></span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$sent_http_transfer_encoding 1.0.8</span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"></span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$server_addr 1.0.8 服务器地址,如果没有用listen指明服务器地址,使用这个变量将发起一次系统调用以取得地址(造成资源浪费);</span><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$server_name 1.0.8 请求到达的服务器名;</span><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$server_port 1.0.8 请求到达的服务器端口号;</span><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$server_protocol 1.0.8 请求的协议版本,"HTTP/1.0"或"HTTP/1.1";</span><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">$uri 1.0.8 请求的URI,可能和最初的值有不同,比如经过重定向之类的</span></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr>
相关推荐
1,nginx内置变量 nginx 有很多内置变量可以进行简单的过滤。 $arg_name 请求行中的name参数。 $args 请求行中参数字符串。 $cookie_name 名为name的cookie。 与$uri相同。 $http_name 任意请求头的值;变量名的后...
nginx内置变量列表,根据 Nginx 源码文件 ngx_http_variables.c 提取了nginx 的内置变量。
经常需要配置Nginx ,其中有许多以 $ 开头的变量,经常需要查阅nginx 所支持的变量。 可能是对 Ngixn资源不熟悉,干脆就直接读源码,分析出支持的变量。 Nginx支持的http变量实现在 ngx_http_variables.c 的 ngx_...
nginx内置变量 内置变量存放在 ngx_http_core_module 模块中,变量的命名方式和apache 服务器变量是一致的。总而言之,这些变量代表着客户端请求头的内容,例如$http_user_agent, $http_cookie, 等等。下面是nginx...
内置变量 声明 可以在sever,http,location等标签中使用set命令(非唯一)声明变量,语法如下 set $变量名 变量值 注意nginx中的变量必须都以$开头。 可见性 nginx的配置文件中所有使用的变量都必须是声明过的...
Nginx 内置预变量都有哪些?
UA,即 Http User Agent,在 Nginx 中使用内置变量 $http_user_agent 表示,该信息作为 request header 的一部分被发往 webserver。因此,对 webserver 来说,有一种禁止访问的方式,就是对 UA 进行判断。 禁止搜索...
我们可以用变量的方式来间接实现。 要实现的语句: if ($arg_unitid = 42012 && $uri ~/thumb/){ echo www.jb51.net; } 如果按照这样来配置,就会报nginx: [emerg] invalid condition错误。 可以这么来实现,如下...
所以关于 Nginx,有这些标签:「异步」「事件」「模块化」「高性能」「高并发」「反向代理」「负载均衡」Linux系统:Centos 7 x64Nginx版本:1.11.5目录配置常用正则全局变量符号参考配置文件内置预定义变量反向代理...
Nginx适配PC或移动设备Nginx通过内置变量$http_user_agent,可以获取到请求客户端的userAgent,就可以用户目前处于移动端还是PC端
Nginx自带的有gzip模块 http://wiki.nginx.org/NginxChsHttpGzipModule ,这个模块支持在线实时压缩输出数据流。...内置变量 $gzip_ratio 可以获取到gzip的压缩比率 指令: 代码如下: [#gzip gzip]
一,启动(二)环境配置(使用开发者工具打开本地主机反向代理地址) JDK Nginx的Tomcat微信开发者工具1,Nginx(1)下载Nginx (2)配置Nginx Nginx环境变量环境变量名称:nginx_home环境变量值:nginx放置路径...
该脚本旨在使用Nginx堆栈在全新的(ve)服务器安装上自动化WordPress的部署。 概述 该脚本需要Ubuntu 11.04。 它为WordPress安装和配置所需的OS软件包以及MySQL / MySQL / Nginx / PHP-FPM / Postfix部署堆栈。 所有...
这意味着您无需在项目外编辑任何文件,并且无论您如何运行项目,始终会设置所有环境变量-Apache,Nginx,CLI甚至PHP的内置Web服务器。 它比您所知的所有其他设置环境变量的方式都容易,而且您会喜欢的! 无需在...
这意味着您无需在项目外编辑任何文件,并且无论您如何运行项目,Apache,Nginx,CLI甚至PHP的内置Web服务器,始终会设置所有环境变量。 它比您所知的设置环境变量的所有其他方式都容易,而且您会喜欢它的!
除了操作表格数据外,MyWebSQL还可以对包括视图,存储过程,触发器和函数在内的对象进行控制,支持数据和查询结果的导入\导出,MyWebSQL还内置一个带语法着色功能的SQL编辑器。 MyWebSQL 3.7 更新日志:2016-10-...