Nginx å¤æ°ã¡ã¢
$arg_PARAMETER
ãã®å¤æ°ãåå¨ããå ´åãã¯ã¨ãªæååã§GETè¦æ±å¤æ°ãã©ã¡ã¼ã¿ã®å¤ãå«ã
This variable contains the value of the GET request variable PARAMETER if present in the query string
$args
ãã®å¤æ°ã¯ãä¾ãã°ãè¦æ±è¡ã§GETãã©ã¡ã¼ã¿ã§ãã FOO =123ï¼ãã¼= blahblahããã®å¤æ°ã¯å¤æ´ãããå ´åãããã¾ãã
This variable is the GET parameters in request line, e.g. foo=123&bar=blahblah; This variable could be changed.
$binary_remote_addr
ãã¤ããªå½¢å¼ã§ã¯ã©ã¤ã¢ã³ãã®ã¢ãã¬ã¹;
The address of the client in binary form;
$body_bytes_sent
ã¬ã¹ãã³ã¹ã®ããã£ã®ä¸é¨ã¨ãã¦éä¿¡ããããã¤ãã®éã§ããæ¥ç¶ãä¸æ¢ã¾ãã¯ä¸æãããå ´åã§ãã£ã¦ãæ£ç¢ºã§ãã
The amount of bytes sent as part of the body of the response. Is accurate even when connections are aborted or interrupted.
$content_length
headerã®Content-Length
This variable is equal to line Content-Length in the header of request;
$content_type
headerã®Content-Type
This variable is equal to line Content-Type in the header of request;
$document_root
ãã£ã¬ã¯ãã£ãã®ã«ã¼ãå¤
This variable is equal to the value of directive root for the current request;
$host
ãã®å¤æ°ã¯ãã®ãããªå ´åã«ã¯$ HTTP_HOSTç°ãªãå¤ãããã¾ãï¼ãã¹ãå
¥åãããã¼ãåå¨ããªãå¤ã¾ãã¯ç©ºå¤ãæã¤å ´åï¼
1ã$hostã¯ãserver_nameãã£ã¬ã¯ãã£ãã®å¤ã«çãã
2ï¼$hostã®å¤ã¯ããã¼ãçªå·ãå«ã¾ãã¦ããå ´åã $hostããã®ãã¼ãçªå·ãå«ã¾ãã¦ãã¾ããã
$hostã®å¤ã¯ãã¼ã¸ã§ã³0.8.17以éå°æå
This variable is equal to line Host in the header of request or name of the server processing the request if the Host header is not available.
This variable may have a different value from $http_host in such cases: 1) when the Host input header is absent or has an empty value, $host equals to the value of server_name directive; 2)when the value of Host contains port number, $host doesn't include that port number. $host's value is always lowercase since 0.8.17.
$hostname
gethostnameã«ãã£ã¦ã«è¨å®
Set to the machine's hostname as returned by gethostname
$http_HEADER
The value of the HTTP request header HEADER when converted to lowercase and with 'dashes' converted to 'underscores', e.g. $http_user_agent, $http_referer...;
$sent_http_HEADER
The value of the HTTP response header HEADER when converted to lowercase and with 'dashes' converted to 'underscores', e.g. $sent_http_cache_control, $sent_http_content_type...;
$is_args
Evaluates to "?" if $args is set, "" otherwise.
$limit_rate
ãã®å¤æ°ã¯ãæ¥ç¶é度ãå¶éãããã¨ãã§ãã¾ãã
This variable allows limiting the connection rate.
$nginx_version
ç¾å¨å®è¡ããã¦ããnginxã®ãã¼ã¸ã§ã³
The version of Nginx that the server is currently running;
$query_string
ãã®å¤æ°ã¯èªã¿åãå°ç¨ã§ãããã¨ãé¤ãã°ã$argsã¨åã
The same as $args except that this variable is readonly.
$remote_addr
ã¯ã©ã¤ã¢ã³ãã®IPã¢ãã¬ã¹
The address of the client.
$remote_port
ã¯ã©ã¤ã¢ã³ãã®ãã¼ãçªå·
The port of the client;
$remote_user
ãã®å¤æ°ã¯ãBASICèªè¨¼ã«ãã£ã¦èªè¨¼ãããã¦ã¼ã¶ã¼ã®åå
This variable is equal to the name of user, authenticated by the Auth Basic Module;
$request_filename
ãã®å¤æ°ã¯ããã£ã¬ã¯ãã£ãã®ã«ã¼ãã¾ãã¯å¥åã¨URIè¦æ±ããå½¢æããããã¡ã¤ã«ãã¹ã«çãã
This variable is equal to path to the file for the current request, formed from directives root or alias and URI request;
$request_body
ãã¼ã¸ã§ã³0.7.58以é
request body
This variable(0.7.58+) contains the body of the request. The significance of this variable appears in locations with directives proxy_pass or fastcgi_pass.
$request_body_file
request bodyã®ä¸æçãªãã¡ã¤ã«å
Client request body temporary filename;
$request_completion
è¦æ±ãæ£å¸¸ã«å®äºããå ´åã¯ã"OK"ã«
Set to "OK" if request was completed successfully. Empty if request was not completed or if request was not the last part of a series of range requests.
$request_method
request method é常ã¯GETã¾ãã¯POST
This variable is equal to the method of request, usually GET or POST.
This variable always evaluates to the method name of the main request, not the current request, when the current request is a subrequest.
$request_uri
request uri å¤æ´ãããã¨ã¯ã§ãã¾ããã
This variable is equal to the *original* request URI as received from the client including the args. It cannot be modified. Look at $uri for the post-rewrite/altered URI. Does not include host name. Example: "/foo/bar.php?arg=baz"
$scheme
HTTPæ¹å¼ï¼ããªãã¡HTTPãHTTPSï¼
The HTTP scheme (i.e. http, https). Evaluated only on demand, for example:
rewrite ^ $scheme://example.com$uri redirect; $server_addr
ãµã¼ãã®ã¢ãã¬ã¹ãä¸è¬çã«nginxã®ã¯ãã·ã¹ãã ããã®å¤ãåå¾ããããã«å¼ã³åºããã¨ãã§ãã¾ããå¹çãæ¹åãããã®ã·ã¹ãã ã³ã¼ã«ãé¿ããããã«ããã£ã¬ã¯ãã£ããèãã¦ããã¤ã³ã·ãã©ã¡ã¼ã¿ã使ç¨ããã¨ã¢ãã¬ã¹ãæå®ãã¾ãã
The server address. Generally nginx makes a system call to obtain this value. To improve efficiency and avoid this system call, specify an address with the listen directive and to use the bind parameter.
$server_name
ãµã¼ãå
The name of the server.
$server_port
ãµã¼ããã¼ã
This variable is equal to the port of the server, to which the request arrived;
$server_protocol
ãã®å¤æ°ã¯ããªã¯ã¨ã¹ãã®ãããã³ã«ã§ããä¸è¬çãªä¾ã¯ãHTTP/1.0ã¾ãã¯HTTP/1.1
This variable is the protocol of the request. Common examples are: HTTP/1.0 or HTTP/1.1
$uri
ãã®å¤æ°ã¯ãä»»æã®å¼æ°ï¼ãããã®ããã«å¼æ°$ãåç §ï¼ãããã¨ãªããç¾å¨ã®ãªã¯ã¨ã¹ãURIã§ãããã®å¤æ°ã¯å é¨ãªãã¤ã¬ã¯ããã¤ã³ããã¯ã¹·ã¢ã¸ã¥ã¼ã«ã«ãã£ã¦ãããã¾ã§ã«è¡ãããå¤æ´ãåæ ããã¾ãããã®ããã«$ REQUEST_URIã¯ããã¨ãã¨ãã®ãããªå¤æ´ããåã«ãã©ã¦ã¶ã«ãã£ã¦éä¿¡ããããã®ã§ãREQUEST_URI$ã¨ã¯ç°ãªãå ´åãããã¾ã注æãã¦ãã ããããããã³ã«ããã¹ãåãå«ã¾ãã¦ãã¾ãããä¾ï¼/ foo /ã¨ããbar.html
This variable is the current request URI, without any arguments (see $args for those). This variable will reflect any modifications done so far by internal redirects or the index module. Note this may be different from $request_uri, as $request_uri is what was originally sent by the browser before any such modifications. Does not include the protocol or host name. Example: /foo/bar.html