how to forbid recording of these errors?
2021/02/18 22:34:24 [error] 14878#14878: *1566624 open() "/home/admin/web/public_html/xaos/16x16/sword.png" failed (2: No such file or directory),
how to forbid recording of these errors?
2021/02/18 22:34:24 [error] 14878#14878: *1566624 open() "/home/admin/web/public_html/xaos/16x16/sword.png" failed (2: No such file or directory),
These errors can removed from the error log by using:
log_not_found off;
See this document for details.
Alternatively, the error message will not be generated if the 404 (not found) response is as a result of processing a try_files statement.
For example:
location / {
try_files $uri $uri/ =404;
}
See this document for details.