<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 29/10/2019 à 13:59, Sergey Kandaurov
a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:2C243EF8-931D-44D3-9E2B-1CFFB528CE2C@nginx.com">
<pre class="moz-quote-pre" wrap="">
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">On 29 Oct 2019, at 15:45, Vincent M. <a class="moz-txt-link-rfc2396E" href="mailto:mouseless@free.fr"><mouseless@free.fr></a> wrote:
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;
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
<a class="moz-txt-link-freetext" href="http://nginx.org/r/log_not_found">http://nginx.org/r/log_not_found</a>
</pre>
</blockquote>
<p><font face="Arial">Yes perfect! So easy. Sorry didn't think that
would be so easy within an option.</font><br>
</p>
</body>
</html>