[GH-ISSUE #30] v4.1.0-beta.3 waf_cache_size 缓存大小参数不见了 #150

Closed
opened 2026-03-13 16:36:36 +03:00 by kerem · 2 comments
Owner

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了
大佬是取消了原本的那个参数吗?以后不需要设置缓存大小了对吧

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了 大佬是取消了原本的那个参数吗?以后不需要设置缓存大小了对吧
kerem 2026-03-13 16:36:36 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@ADD-SP commented on GitHub (Apr 2, 2021):

我确实在 v4.1.0-beta.3 中改动了配置语法。由于是开发版,故没有在更新日志中通知。

<!-- gh-comment-id:812305431 --> @ADD-SP commented on GitHub (Apr 2, 2021): 我确实在 v4.1.0-beta.3 中改动了配置语法。由于是开发版,故没有在更新日志中通知。
Author
Owner

@ADD-SP commented on GitHub (Apr 2, 2021):

这个测试版以后可能还会有大的变动,不兼容的那种。

<!-- gh-comment-id:812305678 --> @ADD-SP commented on GitHub (Apr 2, 2021): 这个测试版以后可能还会有大的变动,不兼容的那种。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ngx_waf#150
No description provided.