question about not found

Christos Chatzaras chris at cretaforce.gr
Thu Feb 28 13:06:35 UTC 2019



> On 28 Feb 2019, at 14:47, Christos Chatzaras <chris at cretaforce.gr> wrote:
> 
> If I try to visit an image that doesn't exist I get:
> 
> "404 Not Found"
> 
> If I add a location / { } then I get:
> 
> "File not found"
> 
> In both cases using curl -I http://www.example.com/image.png <http://www.example.com/image.png> I get:
> 
> HTTP/1.1 404 Not Found
> Server: nginx
> Date: Thu, 28 Feb 2019 12:46:56 GMT
> Content-Type: text/html
> Content-Length: 162
> Connection: keep-alive
> 
> Any idea why it shows different message?


The "File not found" message is displayed with Safari. With Curl and Firefox it shows "404 Not Found".

Does Safari overrides the original message?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20190228/6859b5e3/attachment.html>


More information about the nginx mailing list