On Mon, Jun 08, 2015 at 08:13:03PM -0400, nginxuser100 wrote:
Hi there,
> Hi, I expected fastcgi_intercept_errors to return a static error page AND to
> have include the HTTP error code (e.g. 400) in the HTTP response header.
That's what it does, unless you break it by doing unnecessary things in
your error_page directive.
> From what I see, it returns the static error page but with 200 OK.
error_page 400 = /bad_request.html;
What do you think the "=" means?
What does the documentation say that the "="
means? (http://nginx.org/r/error_page)
Can you think of a way of rephrasing the documentation so that it would
have been clearer to you, so that the next person will not have the
same problem?
What happens when you leave out the "=" and reload the config?
> Is it the expected behavior?
It is what you have configured nginx to do, so yes.
> If yes, is there a way to have nginx return the error page and the error
> code to the client?
Configure it according to the "common" examples in the documentation,
not according to the special-case examples.
Good luck with it,
f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx