浏览 4.7k
我的nginx的限流配置为limit_req_zone $binary_remote_addr zone=reqconsole1:100m rate=1000r/s;我修改limit_req_zone的key从binary_remote_addr为client_real_ip,在reload nginx进程时error日志报错limit_req "reqconsole" uses the "$client_real_ip" key while previously it used the "$binary_remote_addr" key。并且nginx reload并不生效
这个和nginx reload时共享内存不释放有关系吗?是什么原因导致的呢?

按点赞数排序
按时间排序
这个单纯在server、location级别是做不到的,因为只有建立连接后才能获取http报文,解析出uri。
可以使用反向代理,提取变量再转发,但这个也许不一定满足你的要求。
微信公众号
加入微信群