Return JSON for 404 error instead of html

B.R. reallfqq-nginx at yahoo.fr
Wed May 14 00:51:39 UTC 2014


Many thanks to both of you!
Another step in deeper understanding on how to use nginx. :o)
---
*B. R.*


On Tue, May 13, 2014 at 10:13 PM, Francis Daly <francis at daoine.org> wrote:

> On Tue, May 13, 2014 at 09:15:16PM +0200, B.R. wrote:
> > I understand the logic, but when using that handler through error_page
> 404
> > @404, won't the handler's 200 status overload the original 404 one?
>
> http://nginx.org/r/error_page indicates that it won't unless "=" is used.
>
>         f
> --
> Francis Daly        francis at daoine.org
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20140514/b12fb477/attachment.html>


More information about the nginx mailing list