「Nginx」- 性质 | 功能 | Functions | Features

Basic HTTP server features

Other HTTP server features

Mail proxy server features

TCP/UDP proxy server features

Alphabetical index of variables
https://nginx.org/en/docs/varindex.html

支持 HTTP 版本

WIP 其他 HTTP 版本

The ngx_http_v2_module module (1.9.5) provides support for HTTP/2.
https://nginx.org/en/docs/http/ngx_http_v2_module.html

The ngx_http_v3_module module (1.25.0) provides experimental support for HTTP/3.
https://nginx.org/en/docs/http/ngx_http_v3_module.html

ngx_http_auth_request_module

https://nginx.org/en/docs/http/ngx_http_auth_request_module.html

The ngx_http_auth_request_module module (1.5.4+) implements client authorization based on the result of a subrequest. If the subrequest returns a 2xx response code, the access is allowed. If it returns 401 or 403, the access is denied with the corresponding error code. Any other response code returned by the subrequest is considered an error.

location /private/ {
    auth_request /auth;
    ...
}

location = /auth {
    proxy_pass ...
    proxy_pass_request_body off;
    proxy_set_header Content-Length "";
    proxy_set_header X-Original-URI $request_uri;
}

ngx_http_limit_req_module

其为 Nginx 的核心模块,用于实现请求频率限制(Rate Limiting),基于漏桶算法(Leaky Bucket)控制客户端请求的速率。它能够有效防止 DDoS 攻击、暴力破解、API 滥用等场景,保护服务器资源。