Don't log 404 error

Vincent M. mouseless at free.fr
Tue Oct 29 12:45:58 UTC 2019


Hello,

How not to log 404 errors:

2019/10/29 12:42:09 [error] 469#469: *16382 open() 
"/var/www/website/fr/telecharger" failed (2: No such file or directory),

In my config I have:

error_log /var/log/nginx/website-error.log;

Because I use 404 for doing url rewriting and so they are not errors...

error_page 404 = /url_rewriting.php;


Thanks,
Vincent.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20191029/6ffd8b22/attachment.htm>


More information about the nginx mailing list