Re: ïÂÒÁÂÏÔËÁ ÏÛÉÂÏË × ÏÔÄÅÌØÎÏÍ backendÅ.

Eugene Mychlo myc ÎÁ barev.net
÷Ô ñÎ× 19 17:15:11 MSK 2010


igor.goncharenko wrote:
> Hi!
>
> èÏÞÕ ÏÂÒÁÂÁÔÙ×ÁÔØ ×ÓÅ 50x ÏÛÉÂËÉ ÏÔ ÂÜËÅÎÄÏ× × ÏÔÄÅÌØÎÏÍ ÂÜËÅÎÄÅ. ÷ ÜÔÏÍ ÏÔÄÅÌØÎÏÍ ÂÜËÅÎÄÅ ÈÏÞÕ ×Ù×ÏÄÉÔØ ÒÁÚÎÙÅ custom ÓÔÒÁÎÉÃÙ × ÚÁ×ÉÓÉÍÏÓÔÉ ÏÔ ÏÛÉÂËÉ É location.
>
>
>   
ðÅÒÅÄÁ×ÁÊÔÅ  ËÁËÉÍ-ÎÉÂÕÄØ ÏÂÒÁÚÏÍ ÂÜËÅÎÄÕ $upstream_status. ÷ÁÒÉÁÎÔÏ× ÍÎÏÇÏ.
îÁÐÒÉÍÅÒ ÞÅÒÅÚ ÄÏÂÁ×ÏÞÎÙÊ ÚÁÇÌÏ×ÏË.

> # ÉÍÅÎÏ×ÁÎÙÊ location Ó ÐÒÏËÓÉÒÏ×ÁÎÉÅÍ ÎÁ ÂÜËÅÎÄ 
> # ÄÌÑ ÏÂÒÁÂÏÔËÉ ÏÛÉÂËÉ
> location @error_pages_back {
> proxy_intercept_errors   on;
> recursive_error_pages   on;
> proxy_pass http://127.0.0.1:9876;
>                proxy_set_header   Host             $host;
>   
+                     proxy_set_header X-Previous-Error $upstream_status
>                 proxy_buffering off;
>                 proxy_cache off;
> }
>
> }
> ---vhost config---
>   

-- 
Regards,
Eugene Mychlo MYC-RIPE, EAMYC-RIPN




ðÏÄÒÏÂÎÁÑ ÉÎÆÏÒÍÁÃÉÑ Ï ÓÐÉÓËÅ ÒÁÓÓÙÌËÉ nginx-ru