[GH-ISSUE #79] white_url白名单日志问题 #194

Closed
opened 2026-03-13 16:56:35 +03:00 by kerem · 1 comment
Owner

Originally created by @purplegrape on GitHub (Dec 20, 2021).
Original GitHub issue: https://github.com/ADD-SP/ngx_waf/issues/79

amazon linux 2
nginx 1.20.2
ngx_http_waf 10.1.0

static 域名全站 access_log off ; 但waf url白名单中的 /robots.txt 依然打印在日志里。

2021/12/20 03:26:15 [alert] 14763#14763: *377 ngx_waf: [WHITE-URL][/robots.txt] while logging request, client: 172.31.29.8, server: static.example.com, request: "GET /robots.txt HTTP/1.1", host: "172.31.17.26"

Originally created by @purplegrape on GitHub (Dec 20, 2021). Original GitHub issue: https://github.com/ADD-SP/ngx_waf/issues/79 amazon linux 2 nginx 1.20.2 ngx_http_waf 10.1.0 static 域名全站 access_log off ; 但waf url白名单中的 /robots.txt 依然打印在日志里。 2021/12/20 03:26:15 [alert] 14763#14763: *377 ngx_waf: [WHITE-URL][/robots.txt] while logging request, client: 172.31.29.8, server: static.example.com, request: "GET /robots.txt HTTP/1.1", host: "172.31.17.26"
kerem 2026-03-13 16:56:35 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@ADD-SP commented on GitHub (Dec 20, 2021):

access_log 指令并不能控制 ngx_waf 的日志打印,因为 ngx_waf 打印的属于错误日志。

<!-- gh-comment-id:997573082 --> @ADD-SP commented on GitHub (Dec 20, 2021): access_log 指令并不能控制 ngx_waf 的日志打印,因为 ngx_waf 打印的属于错误日志。
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#194
No description provided.