nginx-maxconn-module:此模块用于限制每个定义的键同时请求的数量

时间:2021-06-22 18:01:07
【文件属性】:
文件名称:nginx-maxconn-module:此模块用于限制每个定义的键同时请求的数量
文件大小:12KB
文件格式:ZIP
更新时间:2021-06-22 18:01:07
C nginx-maxconn-module nginx-maxconn-module提供指令来限制每个用户定义的键同时请求的数量。 该模块使用来计算请求。 即使在多个主机上有多个 nginx 服务器,外部计数服务器也使我们能够一致地对请求进行计数。 与 limit_req 的区别 见 。 示例配置 server { # The address of yrmcds server to count requests. maxconn_server 127.0.0.1:11215; location / { # Limit requests up to 10 by their remote IP addresses. set $maxconn_key $remote_addr; set $maxconn_limit
【文件预览】:
nginx-maxconn-module-master
----ngx_event_maxconn.c(29KB)
----LICENSE(1KB)
----README.md(2KB)
----config(286B)
----ngx_http_maxconn.c(13KB)
----ngx_event_maxconn.h(2KB)

网友评论