Sysadmin

The tips & tricks about System Administrator

Nginx warning: using uninitialized "x" variable while logging request

Nginx warning: using uninitialized "x" variable while logging request

Recently, when checking nginx's log, I found a very strange log, so I tried my best to check it. This is nginx's error_log: 2022/01/08 11:20:42 [warn] 17711#17711: *7482384 using uninitialized "server" variable while logging request, client: 45.135.xxx.xx6, server: 127.0.0.1, request: "GET /node_modules/../../../../../etc/passwd HTTP/1.1" This same as the server is under...
Continue reading