Blog built-in variables

Source: Internet
Author: User
Name Version Description (variable list from file ngx_http_variables)
$args 1.0.8 The parameters in the request;
$binary _remote_addr 1.0.8 Binary representation of a remote address
$body _bytes_sent 1.0.8 Number of bytes of message body sent
$content _length 1.0.8 The "content-length" in the HTTP request message;
$content _type 1.0.8 "Content-type" in the request information;
$document _root 1.0.8 Sets the value for the root path of the current request;
$document _uri 1.0.8 Same as $uri;
$host 1.0.8 "Host" in the request message, if there is no host row in the request, is equal to the set server name;
$hostname 1.0.8
$http _cookie 1.0.8 Cookie Information
$http _post 1.0.8
$http _referer 1.0.8 Reference address
$http _user_agent 1.0.8 Client Agent Information
$http _via 1.0.8 The IP address of the last access server. Http://www.cnblogs.com/deng02/archive/2009/02/11/1387911.html
$http _x_forwarded_for 1.0.8 Equivalent to the network access path. Http://www.cnblogs.com/craig/archive/2008/11/18/1335809.html
$is _args 1.0.8
$limit _rate 1.0.8 Restrictions on the connection rate;
$nginx _version 1.0.8
$pid 1.0.8
$query _string 1.0.8 Same as $args;
$realpath _root 1.0.8
$remote _addr 1.0.8 Client address;
$remote _port 1.0.8 Client port number;
$remote _user 1.0.8 Client user name, authentication;
$request 1.0.8 User request
$request _body 1.0.8
$request _body_file 1.0.8 The name of the local file to be sent back
$request _completion 1.0.8
$request _filename 1.0.8 The file path name of the current request
$request _method 1.0.8 The requested method, such as "GET", "POST" and so on;
$request _uri 1.0.8 The URI of the request, with parameters;
$scheme 1.0.8 The protocol used, such as HTTP or HTTPS, such as rewrite^ (. +) $ $scheme://example.com$1redirect;
$sent _http_cache_control 1.0.8
$sent _http_connection 1.0.8
$sent _http_content_length 1.0.8
$sent _http_content_type 1.0.8
$sent _http_keep_alive 1.0.8
$sent _http_last_modified 1.0.8
$sent _http_location 1.0.8
$sent _http_transfer_encoding 1.0.8
$server _addr 1.0.8 Server address, if the server address is not indicated with listen, use this variable to initiate a system call to obtain the address (resulting in resource wastage);
$server _name 1.0.8 The name of the server on which the request arrived;
$server _port 1.0.8 The server port number on which the request arrived;
$server _protocol 1.0.8 The requested protocol version, "http/1.0" or "http/1.1";
$uri 1.0.8 The requested URI may be different from the original value, such as a redirect.

Name Version Description (variable list from file ngx_http_variables)
$args 1.0.8 The parameters in the request;
$binary _remote_addr 1.0.8 Binary representation of a remote address
$body _bytes_sent 1.0.8 Number of bytes of message body sent
$content _length 1.0.8 The "content-length" in the HTTP request message;
$content _type 1.0.8 "Content-type" in the request information;
$document _root 1.0.8 Sets the value for the root path of the current request;
$document _uri 1.0.8 Same as $uri;
$host 1.0.8 "Host" in the request message, if there is no host row in the request, is equal to the set server name;
$hostname 1.0.8
$http _cookie 1.0.8 Cookie Information
$http _post 1.0.8
$http _referer 1.0.8 Reference address
$http _user_agent 1.0.8 Client Agent Information
$http _via 1.0.8 The IP address of the last access server. Http://www.cnblogs.com/deng02/archive/2009/02/11/1387911.html
$http _x_forwarded_for 1.0.8 Equivalent to the network access path. Http://www.cnblogs.com/craig/archive/2008/11/18/1335809.html
$is _args 1.0.8
$limit _rate 1.0.8 Restrictions on the connection rate;
$nginx _version 1.0.8
$pid 1.0.8
$query _string 1.0.8 Same as $args;
$realpath _root 1.0.8
$remote _addr 1.0.8 Client address;
$remote _port 1.0.8 Client port number;
$remote _user 1.0.8 Client user name, authentication;
$request 1.0.8 User request
$request _body 1.0.8
$request _body_file 1.0.8 The name of the local file to be sent back
$request _completion 1.0.8
$request _filename 1.0.8 The file path name of the current request
$request _method 1.0.8 The requested method, such as "GET", "POST" and so on;
$request _uri 1.0.8 The URI of the request, with parameters;
$scheme 1.0.8 The protocol used, such as HTTP or HTTPS, such as rewrite^ (. +) $ $scheme://example.com$1redirect;
$sent _http_cache_control 1.0.8
$sent _http_connection 1.0.8
$sent _http_content_length 1.0.8
$sent _http_content_type 1.0.8
$sent _http_keep_alive 1.0.8
$sent _http_last_modified 1.0.8
$sent _http_location 1.0.8
$sent _http_transfer_encoding 1.0.8
$server _addr 1.0.8 Server address, if the server address is not indicated with listen, use this variable to initiate a system call to obtain the address (resulting in resource wastage);
$server _name 1.0.8 The name of the server on which the request arrived;
$server _port 1.0.8 The server port number on which the request arrived;
$server _protocol 1.0.8 The requested protocol version, "http/1.0" or "http/1.1";
$uri 1.0.8 The requested URI may be different from the original value, such as a redirect.

Name Version Description (variable list from file ngx_http_variables)
$args 1.0.8 The parameters in the request;
$binary _remote_addr 1.0.8 Binary representation of a remote address
$body _bytes_sent 1.0.8 Number of bytes of message body sent
$content _length 1.0.8 The "content-length" in the HTTP request message;
$content _type 1.0.8 "Content-type" in the request information;
$document _root 1.0.8 Sets the value for the root path of the current request;
$document _uri 1.0.8 Same as $uri;
$host 1.0.8 "Host" in the request message, if there is no host row in the request, is equal to the set server name;
$hostname 1.0.8
$http _cookie 1.0.8 Cookie Information
$http _post 1.0.8
$http _referer 1.0.8 Reference address
$http _user_agent 1.0.8 Client Agent Information
$http _via 1.0.8 The IP address of the last access server. Http://www.cnblogs.com/deng02/archive/2009/02/11/1387911.html
$http _x_forwarded_for 1.0.8 Equivalent to the network access path. Http://www.cnblogs.com/craig/archive/2008/11/18/1335809.html
$is _args 1.0.8
$limit _rate 1.0.8 Restrictions on the connection rate;
$nginx _version 1.0.8
$pid 1.0.8
$query _string 1.0.8 Same as $args;
$realpath _root 1.0.8
$remote _addr 1.0.8 Client address;
$remote _port 1.0.8 Client port number;
$remote _user 1.0.8 Client user name, authentication;
$request 1.0.8 User request
$request _body 1.0.8
$request _body_file 1.0.8 The name of the local file to be sent back
$request _completion 1.0.8
$request _filename 1.0.8 The file path name of the current request
$request _method 1.0.8 The requested method, such as "GET", "POST" and so on;
$request _uri 1.0.8 The URI of the request, with parameters;
$scheme 1.0.8 The protocol used, such as HTTP or HTTPS, such as rewrite^ (. +) $ $scheme://example.com$1redirect;
$sent _http_cache_control 1.0.8
$sent _http_connection 1.0.8
$sent _http_content_length 1.0.8
$sent _http_content_type 1.0.8
$sent _http_keep_alive 1.0.8
$sent _http_last_modified 1.0.8
$sent _http_location 1.0.8
$sent _http_transfer_encoding 1.0.8
$server _addr 1.0.8 Server address, if the server address is not indicated with listen, use this variable to initiate a system call to obtain the address (resulting in resource wastage);
$server _name 1.0.8 The name of the server on which the request arrived;
$server _port 1.0.8 The server port number on which the request arrived;
$server _protocol 1.0.8 The requested protocol version, "http/1.0" or "http/1.1";
$uri 1.0.8 The requested URI may be different from the original value, such as a redirect.
name Version description (variable list from file ngx_http_variables)
$args The parameters in the 1.0.8 request;
$binary _remote_addr 1.0.8 Binary representation of remote address
number of bytes of message body sent $body _bytes_sent 1.0.8
$content the "Content-length" in the _length 1.0.8 HTTP request message;
$content the "Content-type" in the _type 1.0.8 request information;
$document _root 1.0.8 Sets the value for the root path of the current request;
$document _uri 1.0.8 is the same as $uri;
$host 1.0.8 "host" in the request message, if there is no host row in the request, it is equal to the set server name;
$hostname 1.0.8
$http _cookie 1.0.8 Cookie Information
$http _post 1.0.8
$http _referer 1.0.8 Reference address
$http _user_agent 1.0.8 Client Agent Information
$http _via 1.0.8 The IP address of the last access server. Http://www.cnblogs.com/deng02/archive/2009/02/11/1387911.html
$http _x_forwarded_for 1.0.8 corresponds to a network access path. Http://www.cnblogs.com/craig/archive/2008/11/18/1335809.html
$is _args 1.0.8
$limit _rate 1.0.8 limits on the connection rate;
$nginx _version 1.0.8
$pid 1.0.8
$query _string 1.0.8 is the same as $args;
$realpath _root 1.0.8
$remote _addr 1.0.8 client address;
$remote _port 1.0.8 client port number;
$remote _user 1.0.8 Client user name, authentication;
$request 1.0.8 User requests
$request _body 1.0.8
$request _body_file 1.0.8 The local file name of the backend
$request _completion 1.0.8
$request _filename 1.0.8 The file path name of the current request
$request _method 1.0.8 request method, such as "GET", "POST" and so on;
$request The URI of the _uri 1.0.8 request, with parameters;
$scheme 1.0.8 protocols used, such as HTTP or HTTPS, such as rewrite^ (. +) $ $scheme://example.com$1redirect;
$sent _http_cache_control 1.0.8
$sent _http_connection 1.0.8
$sent _http_content_length 1.0.8
$sent _http_content_type 1.0.8
$sent _http_keep_alive 1.0.8
$sent _http_last_modified 1.0.8
$sent _http_location 1.0.8
$sent _http_transfer_encoding 1.0.8
$server _addr 1.0.8 server address, if you do not specify a server address with listen, use this variable to initiate a system call to obtain an address (resulting in a waste of resources);
$server The name of the server to which the _name 1.0.8 request arrived;
$server _port 1.0.8 The server port number to which the request arrived;
$server _protocol 1.0.8 The requested protocol version, "http/1.0" or "http/1.1";
The URI of the $uri 1.0.8 request may be different from the original value, such as a redirect

The above introduces the blog built-in variables, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.