error_page behavior

Francis Daly francis at daoine.org
Mon Apr 4 20:12:59 UTC 2016


On Mon, Apr 04, 2016 at 08:54:12PM +0100, Francis Daly wrote:
> On Mon, Apr 04, 2016 at 09:36:36PM +0200, B.R. wrote:

Hi there,

> > -> Error page HTTP 404 (???)
> 
> I only get 404 if error_page.html does not exist. If it does exist,
> I get it with http 200.
> 
> Aside from that: I suspect that proxy_intercept_errors does exactly the
> opposite of what you think it does.

Apologies - I was wrong there.

"proxy_intercept_errors on;" means that error_page *is* used for the
returned http status.

"proxy_intercept_errors off;" means that it is not, and the full original
status+body gets to the client.

So you had (and have) it the way that you want it to be.

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list