@fallback is not working in version 1.0.4?

Igor Sysoev igor at sysoev.ru
Tue Nov 8 18:50:42 UTC 2011


On Tue, Nov 08, 2011 at 03:36:14PM -0300, Jonathan Leibiusky wrote:
> Hi! I'm using nginx 1.0.4 and I have the following configuration:
> 
> server {
>     listen 8080;
>     server_name xxx.yyy.com;
>     location / {
>     error_page 500 502 503 @fallback;
>         proxy_pass http://upstream1;

          proxy_intercept_errors  on;

>     }
>     location @fallback {
>         proxy_pass http://upstream2;
>     }
> }
> 
> And for some reason I don't get to upstream2 even if requests from
> upstream1 are 500.
> Am I doing something wrong?


-- 
Igor Sysoev



More information about the nginx mailing list