error_page without content type

Richard Stanway r1ch+nginx at teamliquid.net
Tue May 14 22:09:11 UTC 2013


On Tue, May 14, 2013 at 5:47 PM, Svoop <svoop at delirium.ch> wrote:

> Hi
>
> I'm setting a custom 404 page with:
>
> server {
>   ...
>   error_page 404 /errors/not-found.html;
> }

...
>
> Any idea what I'm doing wrong here?
>
> Thanks!
>

Looks like your 404s are being generated by a backend, not by nginx. You
may want to use fastcgi_intercept_errors / proxy_intercept_errors.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20130514/34f20815/attachment.html>


More information about the nginx mailing list