A
A
Alzasr2015-04-03 13:01:34
Nginx
Alzasr, 2015-04-03 13:01:34

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

1 answer(s)
E
egor_nullptr, 2015-04-03
@Alzasr

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 question

Ask a Question

731 491 924 answers to any question