Answer the question
In order to leave comments, you need to log in
How to set up nginx logs?
There is a project. I want to ensure that the nginx error.log is empty, so that it can be immediately seen from it whether I have problems or not. The problem is that missing files are written there, but because I have one entry point, and the static is on another server, these records are not interesting to me (I don’t even know where these requests come from), I know that you can set the error crit etc level, but I can’t find the description of the levels and whether they can be edited .
Answer the question
In order to leave comments, you need to log in
log_not_found off;
will disable logging to error_log of errors about file not found. And error_log is configured like this nginx.org/ru/docs/ngx_core_module.html#error_log
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question