|
关于 nginx: [emerg] unknown directive "limit_zone"问题
根据Nginx的更新日志原文显示:
Changes with nginx 1.7.6 30 Sep 2014
*) **Change: the deprecated "limit_zone" directive is not supported
anymore.**
*) Feature: the "**limit_conn_zone**" and "**limit_req_zone**" directives now
can be used with combinations of multiple variables.
*) Bugfix: request body might be transmitted incorrectly when retrying a
FastCGI request to the next upstream server.
*) Bugfix: in logging to syslog..
详情请查看: Nginx更新日志官网
目前limit_zone 这个配置在nginx.conf文件中是无法正常被读取的,应该使用最新的配置:
limit_conn_zone 字段来配置;
新版本例子: limit_conn_zone $binary_remote_addr zone=one:10m
旧版本例子: limit_zone one $binary_remote_addr 10m;
具体的语句的含义就不解释了,相信能找到这个问题的都应该知道什么意思了.
如果有文中有错误的地方,麻烦指出,希望能帮到各位;
|