Welcome! Log In Create A New Profile

Advanced

Re: try_files and proxypass

Francis Daly
August 07, 2015 03:50AM
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@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

try_files and proxypass

arlin August 07, 2015 01:39AM

Re: try_files and proxypass

Francis Daly August 07, 2015 03:50AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 312
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready