The meaning of two proxy_pass directives

I saw some nginx configs written like this:

location ~ {

proxy_pass http://upstream1;
proxy_pass http://upstream2;

}

What this config meaning? proxy_pass to upstream2 if proxy_pass to
upstream fails?

Thanks.

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,209883,209883#msg-209883

sorry. typo.
proxy_pass to upstream2 if proxy_pass to upstream1 fails?

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,209883,209884#msg-209884

On Sat, Jun 25, 2011 at 03:37:17AM -0400, speedfirst wrote:

upstream fails?
This is a wrong configuration, as well as

 location ... {
      proxy_pass    ...
      fastcgi_pass  ...
 }

nginx currently does not report this is as error.


Igor S.

so what will happen if config like this? Only the 2nd proxy_pass takes
effect?

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,209883,210090#msg-210090