mirror of
https://github.com/ADD-SP/ngx_waf.git
synced 2026-04-26 22:15:55 +03:00
[GH-ISSUE #30] v4.1.0-beta.3 waf_cache_size 缓存大小参数不见了 #150
Labels
No labels
MacOS
Nginx
OpenResty
Tengine
bug
documentation
enhancement
needs-investigation
pull-request
question
stale
stale
stale
timeout
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ngx_waf#150
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hibobmaster on GitHub (Apr 2, 2021).
Original GitHub issue: https://github.com/ADD-SP/ngx_waf/issues/30
https://add-sp.github.io/ngx_waf/zh-cn/guide/configuration.html
原本参照这里填写过缓存大小为100M
即
waf_cache_size 100m;今天编译了新版本后,
nginx -t显示nginx: [emerg] ngx_waf: Unable to convert [100m] to a positive integer (22: Invalid argument)在v4.1.0-beta.2版本无此问题
最后我参照https://add-sp.github.io/ngx_waf/zh-cn/advance/syntax.html#waf-cache-size
去掉了上述参数,改为
waf_cache_size 120 50;可以正常重载nginx了大佬是取消了原本的那个参数吗?以后不需要设置缓存大小了对吧
@ADD-SP commented on GitHub (Apr 2, 2021):
我确实在 v4.1.0-beta.3 中改动了配置语法。由于是开发版,故没有在更新日志中通知。
@ADD-SP commented on GitHub (Apr 2, 2021):
这个测试版以后可能还会有大的变动,不兼容的那种。