语法: lua_regex_match_limit <num>
默认: lua_regex_match_limit 0
环境: http
指定执行ngx.re API时使用PCRE库的"匹配限制"。引述PCRE手册,“the limit ... has the effect of limiting the amount of backtracking that can take place.”。
当触发了这个限制,在Lua代码的ngx.re API函数,将返回错误信息"pcre_exec() failed: -8"。
当设置了限制为0,将使用编译PCRE库的默认"match limit"。这也是这个配置的默认值。
这个指令是在v0.8.5
发行版被首次引入的。
English source:
syntax: lua_regex_match_limit <num>
default: lua_regex_match_limit 0
context: http
Specifies the "match limit" used by the PCRE library when executing the ngx.re API. To quote the PCRE manpage, "the limit ... has the effect of limiting the amount of backtracking that can take place."
When the limit is hit, the error string "pcre_exec() failed: -8" will be returned by the ngx.re API functions on the Lua land.
When setting the limit to 0, the default "match limit" when compiling the PCRE library is used. And this is the default value of this directive.
This directive was first introduced in the v0.8.5
release.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。