Force Nginx to log error?

Carl Winbäck c at tunnel53.net
Sun Jun 14 12:39:57 UTC 2020


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
specified.


Best regards,
Carl


More information about the nginx mailing list