Re: proxy_pass и error_page

Анатолий Шарифулин sharifulin at tochkak.ru
Thu Dec 18 15:04:09 MSK 2008


Максим, спасибо, помогло!

18 декабря 2008 г. 14:22 пользователь Maxim Dounin <mdounin at mdounin.ru>написал:

> Hello!
>
> On Thu, Dec 18, 2008 at 12:58:12PM +0300, Анатолий Шарифулин wrote:
>
> > Привет!
> >
> > Через error_page установлены "свои" страницы на ошибки, эти страницы
> > показываются везде, кроме тех случаев, когда запрос попал на @fallback,
> если
> > бекенд вернул ошибку, то показывается дефолтная страница c ошибкой nginx.
> >
> > Вот конфа:
> >
> >     error_page  403              /403.html;
> >     error_page  404              /404.html;
> >     error_page  500 502 503 504  /500.html;
> >
> >     proxy_intercept_errors     on;
> >     proxy_ignore_client_abort  on;
> >
> >     ...
> >     location / {
> >         ...
> >         error_page  403 404 = @fallback;
> >     }
> >
> >     location @fallback {
> >         proxy_pass  http://127.0.0.1:8081;
> >         proxy_store on;
> >         proxy_store_access user:rw group:rw all:r;
> >     }
> >
> > Что посоветуете?
>
>
> http://sysoev.ru/nginx/docs/http/ngx_http_core_module.html#recursive_error_pages
>
> Maxim Dounin
>
>
>


-- 
С уважением,
Анатолий Шарифулин.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20081218/be5dd481/attachment.html>


More information about the nginx-ru mailing list