Nginx深入了解 基礎 三

2021-09-13 13:02:24 字數 1481 閱讀 3157

nginx有很多模組配置,包括官方模組和第三方模組。
syntax:stub_status

default:--

context:server,location

例如:

}

syntax:sub_filter_last_modified on|off;主要用於快取

default:sub_filter_last_modified off;

content:http,server,location

syntax:sub_filter_once on|off; 全域性/非全域性替換

}

連線頻率限制:limit_conn_module

請求頻率限制:limit_req_module

連線限制:

syntax:limit_conn_zone key zone=name:size;

default:--

context:http

syntax:limit_conn zone number;// 需要基於limit_conn_zone

default:--

context:http,server,location

請求限制:

syntax:limit_req_zone key zone=name:size rate=rate;

default:--

context:http

syntax:limit_req zone=name burst=number;// 需要基於limit_req_zone

Nginx深入了解 基礎 四

nginx的訪問控制。有兩種方式可以來進行webserver的訪問控制 一種是基於ip的訪問控制 http access module 另一種是基於使用者的信任登入 http auth basic module.default 相對應的deny方式 syntax deny address cidr ...

Nginx深入了解 高階 三

nginx負載均衡 load balance,簡稱lb 是一種伺服器或網路裝置的集群技術。負載均衡將特定的業務 網路服務 網路流量等 分擔給多個伺服器或網路裝置,從而提高了業務處理能力,保證了業務的高可用性。nginx負載均衡示意圖 nginx負載均衡原理就是將所有客戶端的請求通過proxy pas...

深入了解Nginx

nginx概述 nginx是一款自由的 開源的 高效能的http伺服器和反向 伺服器 同時也是乙個imap pop3 smtp 伺服器 nginx可以作為乙個http伺服器進行 的發布處理,另外nginx可以作為反向 進行負載均衡的實現。這裡主要通過三個方面簡單介紹nginx 反向 負載均衡 ngi...