The meaning of two proxy_pass directives
Igor Sysoev
igor at sysoev.ru
Sat Jun 25 11:41:17 MSD 2011
On Sat, Jun 25, 2011 at 03:37:17AM -0400, speedfirst wrote:
> 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?
This is a wrong configuration, as well as
location ... {
proxy_pass ...
fastcgi_pass ...
}
nginx currently does not report this is as error.
--
Igor Sysoev
More information about the nginx
mailing list