mirror of
https://github.com/ADD-SP/ngx_waf.git
synced 2026-04-26 22:15:55 +03:00
[GH-ISSUE #40] 建议拦截可以自定义返回 #24
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#24
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 @opcache on GitHub (May 10, 2021).
Original GitHub issue: https://github.com/ADD-SP/ngx_waf/issues/40
建议
@ADD-SP commented on GitHub (May 10, 2021):
自定义返回的 HTTP 状态码可以做,预计会在下一个测试版中加入。
返回自定义页面不做,因为有现成的方法。详见 https://nginx.org/en/docs/http/ngx_http_core_module.html#error_page 。
@ADD-SP commented on GitHub (May 10, 2021):
新增了一个配置项:
waf_http_status,请下载最新的 beta 版,按照 配置语法 | ngx_waf 的说明进行操作。@ADD-SP commented on GitHub (May 16, 2021):
v5.3.0 已经发布,如测试后无问题请关闭本 issue。