ngx_http_limit_req_module 在
./nginx-1.24.0/src/http/modules/ngx_http_limit_req_module.c:145:static ngx_http_module_t ngx_http_limit_req_module_ctx = {
ngx_module_t ngx_http_limit_req_module = {
NGX_MODULE_V1,
&ngx_http_limit_req_module_ctx, /* module context */
ngx_http_limit_req_commands, /* module directives */
NGX_HTTP_MODULE, /* module type */
NULL, /* init master */
NULL, /* init module */
NULL, /* init process */
NULL, /* init thread */
NULL, /* exit thread */
NULL, /* exit process */
NULL, /* exit master */
NGX_MODULE_V1_PADDING
};
ngx_http_limit_req_module_ctx
static ngx_http_module_t ngx_http_limit_req_module_ctx = {
ngx_http_limit_req_add_variables, /* preconfiguration */
ngx_http_limit_req_init, /* postconfiguration */
NULL, /* create main configuration */
NULL, /* init main configuration */
NULL, /* create server configuration */
NULL, /* merge server configuration */
ngx_http_limit_req_create_conf, /* create location configuration */
ngx_http_limit_req_merge_conf /* merge location configuration */
};
ngx_http_limit_req_module 的 create_loc_conf 函数是
ngx_http_limit_req_create_conf