<div dir="ltr">Hi;<div>the 404 page is hosted on the same server.</div><div><br></div><div>Marcello</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mer 12 giu 2024 alle ore 16:39 nanaya <<a href="mailto:me@nanaya.net">me@nanaya.net</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
On Wed, Jun 12, 2024, at 22:47, Marcello Lorenzi wrote:<br>
> error_page 404 =404 https://$host/404/;<br>
> <br>
> We noticed that the client receives a 302 code from the initial page to the 404 page and the 404 page gives a 200 code. Into the access_log we can't identify the 404 errors.<br>
> <br>
<br>
As per documentation when a url is defined for error page:<br>
<br>
> In this case, by default, the response code 302 is returned to the client. It can only be changed to one of the redirect status codes (301, 302, 303, 307, and 308).<br>
<br>
Either make it just /404/, or if it's on a different server, make an internal location block which proxies to that page.<br>
</blockquote></div>