国产激情自拍_国产9色视频_丁香花在线电影小说观看 _久久久久国产精品嫩草影院

首頁 > 網(wǎng)站 > WEB服務(wù) > 正文

nginx 全局變量及防DDOS攻擊的簡單配置

2020-05-27 13:44:18
字體:
供稿:網(wǎng)友

   經(jīng)常需要配置Nginx ,其中有許多以 $ 開頭的變量,經(jīng)常需要查閱nginx 所支持的變量。

  可能是對 Ngixn資源不熟悉,干脆就直接讀源碼,分析出支持的變量。

  Nginx支持的http變量實現(xiàn)在 ngx_http_variables.c 的 ngx_http_core_variables存儲實現(xiàn):

  ngx_http_core_variables

  1 static ngx_http_variable_t ngx_http_core_variables[] = {

  2

  3 { ngx_string("http_host"), NULL, ngx_http_variable_header,

  4 offsetof(ngx_http_request_t, headers_in.host), 0, 0 },

  5

  6 { ngx_string("http_user_agent"), NULL, ngx_http_variable_header,

  7 offsetof(ngx_http_request_t, headers_in.user_agent), 0, 0 },

  8

  9 { ngx_string("http_referer"), NULL, ngx_http_variable_header,

  10 offsetof(ngx_http_request_t, headers_in.referer), 0, 0 },

  11

  12 #if (NGX_HTTP_GZIP)

  13 { ngx_string("http_via"), NULL, ngx_http_variable_header,

  14 offsetof(ngx_http_request_t, headers_in.via), 0, 0 },

  15 #endif

  16

  17 #if (NGX_HTTP_PROXY || NGX_HTTP_REALIP)

  18 { ngx_string("http_x_forwarded_for"), NULL, ngx_http_variable_header,

  19 offsetof(ngx_http_request_t, headers_in.x_forwarded_for), 0, 0 },

  20 #endif

  21

  22 { ngx_string("http_cookie"), NULL, ngx_http_variable_headers,

  23 offsetof(ngx_http_request_t, headers_in.cookies), 0, 0 },

  24

  25 { ngx_string("content_length"), NULL, ngx_http_variable_header,

  26 offsetof(ngx_http_request_t, headers_in.content_length), 0, 0 },

  27

  28 { ngx_string("content_type"), NULL, ngx_http_variable_header,

  29 offsetof(ngx_http_request_t, headers_in.content_type), 0, 0 },

  30

  31 { ngx_string("host"), NULL, ngx_http_variable_host, 0, 0, 0 },

  32

  33 { ngx_string("binary_remote_addr"), NULL,

  34 ngx_http_variable_binary_remote_addr, 0, 0, 0 },

  35

  36 { ngx_string("remote_addr"), NULL, ngx_http_variable_remote_addr, 0, 0, 0 },

  37

  38 { ngx_string("remote_port"), NULL, ngx_http_variable_remote_port, 0, 0, 0 },

  39

  40 { ngx_string("server_addr"), NULL, ngx_http_variable_server_addr, 0, 0, 0 },

  41

  42 { ngx_string("server_port"), NULL, ngx_http_variable_server_port, 0, 0, 0 },

  43

  44 { ngx_string("server_protocol"), NULL, ngx_http_variable_request,

  45 offsetof(ngx_http_request_t, http_protocol), 0, 0 },

  46

  47 { ngx_string("scheme"), NULL, ngx_http_variable_scheme, 0, 0, 0 },

  48

  49 { ngx_string("request_uri"), NULL, ngx_http_variable_request,

  50 offsetof(ngx_http_request_t, unparsed_uri), 0, 0 },

  51

  52 { ngx_string("uri"), NULL, ngx_http_variable_request,

  53 offsetof(ngx_http_request_t, uri),

  54 NGX_HTTP_VAR_NOCACHEABLE, 0 },

  55

  56 { ngx_string("document_uri"), NULL, ngx_http_variable_request,

  57 offsetof(ngx_http_request_t, uri),

  58 NGX_HTTP_VAR_NOCACHEABLE, 0 },

  59

  60 { ngx_string("request"), NULL, ngx_http_variable_request_line, 0, 0, 0 },

  61

  62 { ngx_string("document_root"), NULL,

  63 ngx_http_variable_document_root, 0, NGX_HTTP_VAR_NOCACHEABLE, 0 },

  64

  65 { ngx_string("realpath_root"), NULL,

  66 ngx_http_variable_realpath_root, 0, NGX_HTTP_VAR_NOCACHEABLE, 0 },

  67

  68 { ngx_string("query_string"), NULL, ngx_http_variable_request,

  69 offsetof(ngx_http_request_t, args),

  70 NGX_HTTP_VAR_NOCACHEABLE, 0 },

  71

  72 { ngx_string("args"),

  73 ngx_http_variable_request_set,

  74 ngx_http_variable_request,

  75 offsetof(ngx_http_request_t, args),

  76 NGX_HTTP_VAR_CHANGEABLE|NGX_HTTP_VAR_NOCACHEABLE, 0 },

  77

  78 { ngx_string("is_args"), NULL, ngx_http_variable_is_args,

  79 0, NGX_HTTP_VAR_NOCACHEABLE, 0 },

  80

  81 { ngx_string("request_filename"), NULL,

  82 ngx_http_variable_request_filename, 0,

  83 NGX_HTTP_VAR_NOCACHEABLE, 0 },

  84

  85 { ngx_string("server_name"), NULL, ngx_http_variable_server_name, 0, 0, 0 },

  86

  87 { ngx_string("request_method"), NULL,

  88 ngx_http_variable_request_method, 0,

  89 NGX_HTTP_VAR_NOCACHEABLE, 0 },

  90

  91 { ngx_string("remote_user"), NULL, ngx_http_variable_remote_user, 0, 0, 0 },

  92

  93 { ngx_string("body_bytes_sent"), NULL, ngx_http_variable_body_bytes_sent,

  94 0, 0, 0 },

  95

  96 { ngx_string("request_completion"), NULL,

  97 ngx_http_variable_request_completion,

  98 0, 0, 0 },

  99

  100 { ngx_string("request_body"), NULL,

  101 ngx_http_variable_request_body,

  102 0, 0, 0 },

  103

  104 { ngx_string("request_body_file"), NULL,

  105 ngx_http_variable_request_body_file,

  106 0, 0, 0 },

  107

  108 { ngx_string("sent_http_content_type"), NULL,

  109 ngx_http_variable_sent_content_type, 0, 0, 0 },

  110

  111 { ngx_string("sent_http_content_length"), NULL,

  112 ngx_http_variable_sent_content_length, 0, 0, 0 },

  113

  114 { ngx_string("sent_http_location"), NULL,

  115 ngx_http_variable_sent_location, 0, 0, 0 },

  116

  117 { ngx_string("sent_http_last_modified"), NULL,

  118 ngx_http_variable_sent_last_modified, 0, 0, 0 },

  119

  120 { ngx_string("sent_http_connection"), NULL,

  121 ngx_http_variable_sent_connection, 0, 0, 0 },

  122

  123 { ngx_string("sent_http_keep_alive"), NULL,

  124 ngx_http_variable_sent_keep_alive, 0, 0, 0 },

  125

  126 { ngx_string("sent_http_transfer_encoding"), NULL,

  127 ngx_http_variable_sent_transfer_encoding, 0, 0, 0 },

  128

  129 { ngx_string("sent_http_cache_control"), NULL, ngx_http_variable_headers,

  130 offsetof(ngx_http_request_t, headers_out.cache_control), 0, 0 },

  131

  132 { ngx_string("limit_rate"), ngx_http_variable_request_set_size,

  133 ngx_http_variable_request_get_size,

  134 offsetof(ngx_http_request_t, limit_rate),

  135 NGX_HTTP_VAR_CHANGEABLE|NGX_HTTP_VAR_NOCACHEABLE, 0 },

  136

  137 { ngx_string("nginx_version"), NULL, ngx_http_variable_nginx_version,

  138 0, 0, 0 },

  139

  140 { ngx_string("hostname"), NULL, ngx_http_variable_hostname,

  141 0, 0, 0 },

  142

  143 { ngx_string("pid"), NULL, ngx_http_variable_pid,

  144 0, 0, 0 },

  145

  146 { ngx_null_string, NULL, NULL, 0, 0, 0 }

  147 };

 

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
国产激情自拍_国产9色视频_丁香花在线电影小说观看 _久久久久国产精品嫩草影院
国产精品一区二区三区视频网站| 亚洲日本久久久午夜精品| 国产福利电影在线观看| 国产欧美黑人| 精品视频麻豆入口| sese在线视频| 国产在线小视频| 国产美女极品在线| 国产桃色电影在线播放| 国产成人亚洲综合小说区| av小说在线| 精品麻豆一区二区三区| 99在线欧洲视频| 日本成人a视频| 国产视频2区| 牛牛热在线视频| 国产精品免费视频二三区| av在线天天| 国产精品国产国产aⅴ| 香蕉视频在线观看www| 最新中文字幕av专区| 亚洲综合激情六月婷婷在线观看| 国产免费一级| 四虎久久影院| 国产欧美日本亚洲精品一4区| 免费在线高清av| 中文资源在线网| 欧美日韩在线资源| 国产黄色免费网站| 国产嫩草在线视频| japanese色国产在线看视频| 精品麻豆国产| 国产精品欧美韩国日本久久| 天堂在线中文资源| 黄色国产网站在线播放| 在线āv视频| 国产成人久久精品77777| 国产美女视频网站| 国产中文字幕在线| 国产在线一二三区| 欧美午夜电影一区二区三区| 影音先锋日韩| 国产a国产a国产a| 国产成人精品18| 国产成人综合美国十次| 国产二区三区四区| 国产va在线观看| 国产福利免费在线观看| 91欧美在线视频| 午夜小视频在线| 日本动漫同人动漫在线观看| 天天草天天操| 美女免费视频黄| 99热在线观看免费| 国产精品免费视频一区一| 国产导航在线| 青青草视频在线观看| 超碰91在线| 狠狠操视频网| 国产福利免费观看| 青草青在线视频| 国产网站麻豆精品视频| 在线亚洲不卡| 国产主播色在线| 国产成人夜间影院在线观看| av免费在线免费| 国产免费电影网站入口| 精品视频二区三区| 国产中文字幕第一页| 国产成人综合美国十次| 另类综合图区| 91中文字幕| 麻豆精品不卡国产免费看| 国产午夜视频| 欧美性猛交xxxx免费看久久| 中文字幕日本在线观看| 亚洲精品手机在线| 国产调教视频在线观看| 色综合久久五月天| 国产日韩欧美精品一区二区三区 | www.九九热.com| 激情六月婷婷| 日本福利午夜视频在线| 国产特级嫩嫩嫩bbb| 亚洲欧美日韩成人网| 最新av免费看| 黄网站app在线观看下载视频大全官网| 国产精品美女视频免费观看软件 | 久久香蕉一区| av男人的天堂网| 国产福利在线观看| 国产欧美日韩专区| 最新天堂资源在线| 天堂在线中文| 国产香蕉视频在线看| 日本免费一二区| 亚洲综合色视频在线观看| 97一区二区三区| 91极品在线| 伊人影院在线观看| 国产成人综合美国十次| 国产二区在线播放| 2021av天天| 影音先锋在线中文字幕| 伊人中文字幕在线| 一本大道五月香蕉| 爱福利在线视频| 久热中文字幕| 五月婷婷丁香激情| 最近中文字幕大全中文字幕免费 | 免费的黄网站在线观看| av在线第一页| 久热精品免费视频| 国产原创精品视频| 最近中文字幕mv2018在线高清 | 国产区成人精品视频| 国产一级在线观看www色| 国产区在线观看| 中文字幕2019第三页| 人人干在线视频| 九九热视频免费观看| 国产美女在线观看| 国产日韩欧美一区二区三区视频| 国产福利视频在线观看| av片在线观看| 亚洲人在线播放| 免费一区二区三区视频狠狠| 午夜在线网站| 欧美视频免费一区二区三区| 最近久乱中文字幕| 国产va在线| 九九在线观看免费视频| 国产特级嫩嫩嫩bbb| 99久久国产视频| 国产在线观看a视频| 成人欧美亚洲| 最新av免费看| 四虎久久影院| 国产黄色在线观看| 久久91精品视频| 精品成人免费自拍视频| 青青草原国产在线观看| 最近中文字幕在线中文视频| 99reav在线| 国产视频福利| 九色视频网站| baoyu777.永久免费视频| 国产野外战在线播放| www.色五月| 亚洲字幕成人中文在线观看| 最新av免费看| 狠狠干五月天| 青青草免费在线视频| 久久99精品久久久久久野外| 日本不卡1区2区3区| 天天操夜夜操天天射| 精品一区二区三区在线观看l| 日本一二三区视频免费高清| 精品入口麻豆传煤| 国产人成网在线播放va免费| 九九热在线观看视频| 四虎精品成人a在线观看| 97操碰视频| 91xx在线观看| 91资源在线观看| 中文字幕中文字幕在线中高清免费版 | 国产精品臀控福利在线观看| 99热99re6国产在线播放| 国产福利av网站| 91最新在线| 在线免费国产| 日本电影在线观看| аⅴ成人天堂中文在线| www在线免费观看视频| 青草在线视频在线观看| 五月婷婷导航| 最近中文字幕mv免费高清电影| 香蕉视频网站在线观看| av中文网站| 久热精品免费视频| 精品中文字幕不卡在线视频| 99视频在线观看地址| 国产黄色在线观看| 在线观看免费黄色| 男人天堂v视频| 毛片网站在线观看| 国产美女视频一区二区三区| 国产网站免费看| 18被视频免费观看视频| 99re6在线视频精品免费| 美女永久在线网站| 国产精品xxx电影| 亚洲欧洲成人| 国产一区电影| av中文在线| 国产人成在线观看| 久久久久久久久久久久久91| 最近中文字幕av免费高清| 在线一区二区三区精品| 国产男女av|