try_files and proxypass

Francis Daly francis at daoine.org
Fri Aug 7 07:48:24 UTC 2015


On Fri, Aug 07, 2015 at 01:39:05AM -0400, arlin wrote:

Hi there,

> I came across such configs and I am curios to know what @app_$dc;  matches
> in location configs?
> 
>   try_files $uri @app_$dc;

Presumably somewhere else in the config, $dc is set to either prod or qadc.

try_files expands variables -- for example $uri -- before testing.

> location @app_prod { proxy_pass http://app_prod;}
> location @app_qadc { proxy_pass http://app_qadc;}

It will use whatever location @app_$dc expands to on this request.

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list