Welcome! Log In Create A New Profile

Advanced

Don't log 404 error

Vincent M.
October 29, 2019 08:48AM
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.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Don't log 404 error

Vincent M. October 29, 2019 08:48AM

Re: Don't log 404 error

Sergey Kandaurov October 29, 2019 09:00AM

Re: Don't log 404 error

Vincent M. October 29, 2019 11:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 103
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready