ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error_page & proxy_pass



On Thu, Jul 03, 2008 at 11:34:52PM +0300, Andrew Sitnikov wrote:

> Hello Igor,
> 
> IS> Это фича. Нужно добавить URI-part в proxy_pass:
> результат еще более странный
> 
> 2008/07/03 23:31:54 [debug] 2015#0: *7879 generic phase: 3
> 2008/07/03 23:31:54 [debug] 2015#0: *7879 http finalize request: 502, "/foo?"
> 2008/07/03 23:31:54 [debug] 2015#0: *7879 http special response: 502, "/foo"
> 2008/07/03 23:31:54 [debug] 2015#0: *7879 http set discard body
> 2008/07/03 23:31:54 [debug] 2015#0: *7879 internal redirect: 
> "/errors/502.html?"
> 2008/07/03 23:31:54 [debug] 2015#0: *7879 generic phase: 1
> ...
> 2008/07/03 23:31:54 [debug] 2015#0: *7879 find location for "/errors/502.html"
> 2008/07/03 23:31:54 [debug] 2015#0: *7879 find location: "/"
> 2008/07/03 23:31:54 [debug] 2015#0: *7879 find location: "/errors"
> ...
> 2008/07/03 23:31:54 [debug] 2015#0: *7879 using configuration "/errors"
> 2008/07/03 23:31:54 [debug] 2015#0: *7879 http cl:-1 max:10485760
> 2008/07/03 23:31:54 [debug] 2015#0: *7879 generic phase: 3
> 2008/07/03 23:31:54 [debug] 2015#0: *7879 post rewrite phase: 4
> 2008/07/03 23:31:54 [debug] 2015#0: *7879 generic phase: 5
> 2008/07/03 23:31:54 [debug] 2015#0: *7879 generic phase: 6
> 2008/07/03 23:31:54 [debug] 2015#0: *7879 access phase: 7
> 2008/07/03 23:31:54 [debug] 2015#0: *7879 access phase: 8
> 2008/07/03 23:31:54 [debug] 2015#0: *7879 post access phase: 9
> 2008/07/03 23:31:54 [debug] 2015#0: *7879 malloc: 000000000EB38610:4096
> 2008/07/03 23:31:54 [debug] 2015#0: *7879 http init upstream, client timer: 0
> 2008/07/03 23:31:54 [debug] 2015#0: *7879 epoll add event: fd:708 op:3 
> ev:80000005
> 2008/07/03 23:31:54 [debug] 2015#0: *7879 http script copy: ""
> 2008/07/03 23:31:54 [debug] 2015#0: *7879 http script copy: ""
> ...
> 2008/07/03 23:31:54 [debug] 2015#0: *7879 http proxy header:
> "GET //502.html HTTP/1.0

Я ошибся:

   location /errors/ {
        proxy_pass http://backend:80/errors/;
   }


-- 
Игорь Сысоев
http://sysoev.ru



 




Copyright © Lexa Software, 1996-2009.