@fallback is not working in version 1.0.4?

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;
}
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?

Thanks!

Jonathan

On Tue, Nov 08, 2011 at 03:36:14PM -0300, Jonathan L. 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 S.

awesome! thanks a lot!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs