Re: игнорирование error_page при фалл

Denis F. Latypoff latypoff at yandex.ru
Tue Aug 4 13:12:59 MSD 2009



> 
> Привет.
> Есть примерно такая конфигурация nginx 0.8.7:
> 
> proxy_intercept_errors on;
> 
> server { 
> ...
> 
> 
> location /dum/ {
>  proxy_pass http://$nowproxy;
>  error_page 500 502 503 504 = @tom;
>  }
>  
> location @tom {
>  proxy_pass http://upstream;
> }
> error_page 500 502 503 504 /error50x.shtml;
> }
> 
> Проблема в том, что если все бекенды вернули 500, nginx отдает дефолтную страничку из дистрибутива 50x.html, а не error50x.shtml
>  Почему бы это могло происходить?

http://sysoev.ru/nginx/docs/http/ngx_http_core_module.html#recursive_error_pages

-- 
br, Denis F. Latypoff.





More information about the nginx-ru mailing list