Мусор в логах в request: "$%GFDR$$%#@#"

grey nginx-forum на forum.nginx.org
Вт Авг 17 10:58:23 UTC 2021


Приветствую всех!

Занимаюсь отладкой скрипта на локальной машине. Заметил странное поведение,
полез в логи nginx и вижу там:

2021/08/17 13:36:18 [info] 44580#50744: *308 client sent invalid method
while reading client request line, client: 127.0.0.1, server: _, request:
"qсЯE°ё"
2021/08/17 13:36:18 [info] 46128#45568: *309 client sent invalid method
while reading client request line, client: 127.0.0.1, server: _, request:
""
2021/08/17 13:46:18 [info] 46128#45568: *317 client sent invalid method
while reading client request line, client: 127.0.0.1, server: _, request:
"...."

Строка request начинается всегда одинаково, но каждый раз длина и мусор в
ней разный. 

Часть конфига:

# antiddos
	server {
		listen 80;
		server_name _; #default
		access_log  off;
		return 444;
	}
# antiddos

server {
	listen       80;
	server_name  127.0.0.1;

	allow 127.0.0.1;
	deny all;

	client_max_body_size 32m;

	root /www;
	index  index.php index.html. index.htm;

	access_log  logs/access.log  combined;
	error_log  logs/error.log notice; 

	location ~ \.(php|html|htm)$ {
		root /www;
		index  index.php index.html. index.htm;

		fastcgi_pass   127.0.0.1:9000;
		fastcgi_index  index.php;
		fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
		fastcgi_read_timeout 600;

		include        fastcgi_params;
	}


Подскажите, откуда берется ошибка?

Posted at Nginx Forum: https://forum.nginx.org/read.php?21,292242,292242#msg-292242



Подробная информация о списке рассылки nginx-ru