wrong status code when proxying 404 errors
Abdul-Rahman Advany
abdulrahman at advany.com
Fri Feb 8 09:35:23 MSK 2008
remove the =
On 2/7/08, Jodok Batlogg <batlogg at mac.com> wrote:
>
> hi,
>
> i'm trying to use an upstream proxy to generate a 404 error page.
> my config looks like that:
>
>
> location '/error/404' {
> rewrite ^/(.*) /news/404 break;
> proxy_pass http://backend_varnish;
> }
>
> error_page 404 = /error/404;
>
>
> unfortunately nginx returns a response header of 200 OK
>
> i also tried
>
> error_page 404 =404 /error/404;
>
> but that doesn't work as well.
> any ideas?
>
> thanks
>
> jodok
>
>
>
--
Abdul-Rahman Advany
IM: abdulrahman at advany.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20080208/18455f37/attachment.html>
More information about the nginx
mailing list