亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb

首頁 > 服務器 > Web服務器 > 正文

Nginx中全局變量整理小結

2024-09-01 13:45:50
字體:
來源:轉載
供稿:網友

Variables

The core module supports built-in variables, whose names correspond with the names of variables in Apache.

First of all, there are the variables, which represent the lines of the title of the client request, for example, $http_user_agent, $http_cookie, and so forth.

Furthermore, there are other variables:
Edit section: $arg_PARAMETER $arg_PARAMETER

This variable contains the value of the GET request variable PARAMETER if present in the query string
Edit section: $args $args

This variable is equal to arguments in the line of request;
Edit section: $binary_remote_addr $binary_remote_addr

The address of the client in binary form;
Edit section: $body_bytes_sent $body_bytes_sent

(undocumented)
Edit section: $content_length $content_length

This variable is equal to line Content-Length in the header of request;
Edit section: $content_type $content_type

This variable is equal to line Content-Type in the header of request;
Edit section: $cookie_COOKIE $cookie_COOKIE

The value of the cookie COOKIE;
Edit section: $document_root $document_root

This variable is equal to the value of directive root for the current request;
Edit section: $document_uri $document_uri

The same as $uri.
Edit section: $host $host

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 when the Host input header is absent or has an empty value.
Edit section: $http_HEADER $http_HEADER

The value of the HTTP header HEADER when converted to lowercase and with ‘dashes' converted to ‘underscores', e.g. $http_user_agent, $http_referer…;
Edit section: $is_args $is_args

Evaluates to “?” if $args is set, “” otherwise.
Edit section: $limit_rate $limit_rate

This variable allows limiting the connection rate.
Edit section: $query_string $query_string

The same as $args.
Edit section: $remote_addr $remote_addr

The address of the client.
Edit section: $remote_port $remote_port

The port of the client;
Edit section: $remote_user $remote_user

This variable is equal to the name of user, authenticated by the Auth Basic Module;
Edit section: $request_filename $request_filename

This variable is equal to path to the file for the current request, formed from directives root or alias and URI request;
Edit section: $request_body $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.
Edit section: $request_body_file $request_body_file

Client request body temporary filename;
Edit section: $request_completion $request_completion

(undocumented)
Edit section: $request_method $request_method

This variable is equal to the method of request, usually GET or POST.

Before and including 0.8.20, this variable always evaluates to the method name of the main request, not the current request if the current request is a subrequest.
Edit section: $request_uri $request_uri

This variable is equal to the complete initial URI together with the arguments;
Edit section: $scheme $scheme

The HTTP scheme (i.e. http, https). Evaluated only on demand, for example:

rewrite ^(.+)$ $scheme://example.com$1 redirect;

Edit section: $server_addr $server_addr

Equal to the server address. As a rule, for obtaining the value of this variable is done one system call. In order to avoid system call, it is necessary to indicate addresses in directives listen and to use parameter bind.
Edit section: $server_name $server_name

The name of the server.
Edit section: $server_port $server_port

This variable is equal to the port of the server, to which the request arrived;
Edit section: $server_protocol $server_protocol

This variable is equal to the protocol of request, usually this HTTP/1.0 or HTTP/1.1.
Edit section: $uri $uri

This variable is equal to current URI in the request, it can differ from initial, for example by internal redirects, or with the use of index it is file with internal redirects.

參考:

%E5%9F%BA%E6%9C%AC%E8%AF%AD%E6%B3%95

$args 此變量與請求行中的參數相等

$content_length 等于請求行的“Content_Length”的值。

$content_type 等同與請求頭部的”Content_Type”的值

$document_root 等同于當前請求的root指令指定的值

$document_uri 與$uri一樣

$host 與請求頭部中“Host”行指定的值或是request到達的server的名字(沒有Host行)一樣

$limit_rate 允許限制的連接速率

$request_method 等同于request的method,通常是“GET”或“POST”

$remote_addr 客戶端ip

$remote_port 客戶端port

$remote_user 等同于用戶名,由ngx_http_auth_basic_module認證

$request_filename 當前請求的文件的路徑名,由root或alias和URI request組合而成

$request_body_file

$request_uri 含有參數的完整的初始URI

$query_string 與$args一樣

$server_protocol 等同于request的協議,使用“HTTP/1.0”或“HTTP/1.1”

$server_addr request到達的server的ip,一般獲得此變量的值的目的是進行系統調用。為了避免系統調用,有必要在listen指令中指明ip,并使用bind參數。

$server_name 請求到達的服務器

$server_port 請求到達的服務器的端口號

$uri 等同于當前request中的URI,可不同于初始值,例如內部重定向時或使用index

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb
国模精品一区二区三区色天香| 国产一区在线播放| 欧美性生交xxxxxdddd| 午夜精品久久久久久99热软件| 国产视频精品在线| 久久频这里精品99香蕉| 国产欧美亚洲视频| 视频在线观看一区二区| 亚洲天堂网站在线观看视频| 538国产精品一区二区在线| 日本久久久久久久久久久| 亚洲精品色婷婷福利天堂| 亚洲国产欧美一区二区三区久久| 国产精品一区二区电影| 亚洲丝袜在线视频| 亚洲国产精品美女| 青青草精品毛片| 91亚洲精品久久久久久久久久久久| 永久555www成人免费| 国产在线视频2019最新视频| 欧美性69xxxx肥| 视频在线观看一区二区| 精品视频在线观看日韩| 日本欧美一级片| 中文字幕精品网| 亚洲国产另类久久精品| 久久精品国产视频| 亚洲成**性毛茸茸| 日本亚洲欧洲色| 亚洲女成人图区| 久久夜色精品国产| 亚洲国产成人精品女人久久久| 欧美日韩午夜视频在线观看| 久久视频在线免费观看| 亚洲丝袜在线视频| 国产精品久久久久久亚洲调教| 日韩av有码在线| 亚洲第一男人天堂| 国产精品视频男人的天堂| 久久艹在线视频| 亚洲综合日韩在线| 日韩视频在线一区| 国产精品三级网站| 国产精品99一区| 久久成人亚洲精品| 91香蕉亚洲精品| 亚洲成人av片| 日产精品久久久一区二区福利| 日本19禁啪啪免费观看www| 亚洲精品98久久久久久中文字幕| 久久久综合av| 国产国语刺激对白av不卡| 日韩成人免费视频| 国产a∨精品一区二区三区不卡| 亚洲国产成人在线视频| www国产亚洲精品久久网站| 自拍偷拍免费精品| 欧美国产视频日韩| 精品久久久久久中文字幕大豆网| 久久久久久久久亚洲| xxxx欧美18另类的高清| 欧美黑人一区二区三区| 亚洲女人天堂av| 神马国产精品影院av| 欧美激情精品久久久久久大尺度| 欧美视频中文在线看| 亚洲精品中文字幕女同| 亚洲一区免费网站| 一区二区亚洲欧洲国产日韩| 欧美精品久久久久久久久| 欧美日韩综合视频| 国产精品免费视频久久久| 亚洲精品大尺度| 国产精品91久久久久久| 亚洲国产精品久久久久秋霞不卡| 国产精品一区二区久久| 热re99久久精品国产66热| 亚洲国产高清高潮精品美女| 国产成人精品视频在线| 欧美日韩中文字幕在线| 欧美最猛性xxxxx免费| 精品视频在线导航| 国产亚洲精品久久久| 久久久久久久久91| 91成人天堂久久成人| 欧美性猛交xxxx富婆弯腰| 国产欧美日韩亚洲精品| 日韩av在线导航| 亚洲美女免费精品视频在线观看| 97久久精品人搡人人玩| 91国产精品视频在线| 日韩成人在线免费观看| 91久久精品国产91久久| 51色欧美片视频在线观看| 日韩美女在线观看| 91中文字幕在线| 一色桃子一区二区| 美日韩精品视频免费看| 精品国模在线视频| 欧美丰满少妇xxxxx| 亚洲精品国产suv| 亚洲激情 国产| 日韩精品免费在线播放| 日韩大片在线观看视频| 97精品国产97久久久久久| 亚洲欧美一区二区激情| 日韩美女在线看| 国产精品一区二区三区久久| 国产精品久久网| 91精品国产91久久久久久吃药| 欧美成在线视频| 精品久久久久久久中文字幕| 中文字幕日韩欧美在线| 国产午夜精品久久久| 一区二区国产精品视频| 伊人久久免费视频| 亚洲品质视频自拍网| 午夜精品在线视频| 欧美激情高清视频| 亚洲欧美综合区自拍另类| 欧美日韩精品二区| 日本免费久久高清视频| 久久人人爽人人爽人人片亚洲| 成人黄色午夜影院| 91精品国产91久久久久久不卡| 91精品视频网站| 国产精品第8页| 国产在线播放不卡| 亚洲视频免费一区| 欧美成年人视频| 久久久久国色av免费观看性色| 一区二区三区回区在观看免费视频| 久久久久久久色| 亚洲精品99久久久久中文字幕| xxxxxxxxx欧美| 日韩av片电影专区| 亚洲男子天堂网| 欧美色视频日本版| 成人午夜激情网| 亚洲精品欧美日韩| 91精品国产高清久久久久久久久| 欧美激情视频免费观看| 亚洲黄页网在线观看| 全亚洲最色的网站在线观看| 欧美在线视频免费观看| 欧美激情久久久| 色综合久久中文字幕综合网小说| 亚洲国产另类久久精品| 日韩精品在线免费播放| 欧美日韩国产一区二区| 国产亚洲激情视频在线| 亚洲国产成人精品久久久国产成人一区| 亚洲欧美在线磁力| 久久伊人精品视频| 精品国产一区二区三区久久| 77777亚洲午夜久久多人| 亚洲第一视频在线观看| 在线观看精品国产视频| 亚洲精品国产精品自产a区红杏吧| 一区二区亚洲欧洲国产日韩| 色偷偷88888欧美精品久久久| 国产精品三级网站| 精品亚洲永久免费精品| 日本精品一区二区三区在线|