Force Nginx to log error?

lists lists at
Sun Jun 14 13:53:13 UTC 2020

I'm not sure I understand the question, but how does this sound? I use a map to catch requests that I don't want. For instance I return a 444 if I receive a "wget". 

	  Original Message  	

From: c at
Sent: June 14, 2020 5:40 AM
To: nginx at
Reply-to: nginx at
Subject: Force Nginx to log error?

Hi folks,

Is there any surefire way to force Nginx to log an error?

Perhaps some carefully crafted GET request or similar.

The reason I’m asking is that I’m doing a lab with Nginx’ error
log. Therefore I would like to find a way so that I can force Nginx to
log an error. E.g. if I specify "error_log /srv/nginx/error.log warn;"
then I would like to verify that errors end up in the file that I

Best regards,
nginx mailing list
nginx at

More information about the nginx mailing list