Re: Nginx map - use variable multiple times or use multiple variables

2019-12-05 Thread stmx38
Maxim, Different locations solved the issue. Thank you for the help! Posted at Nginx Forum: https://forum.nginx.org/read.php?2,286421,286423#msg-286423 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx map - use variable multiple times or use multiple variables

2019-12-05 Thread Maxim Dounin
Hello! On Thu, Dec 05, 2019 at 01:12:07PM -0500, stmx38 wrote: > Hello, > > We use Nginx map module to sent traffic to different upstreams based on the > HTTP header: > > map $http_flow $flow_upstream { > default "http://flow-dev";; > prod"http://flow-prod";; > test"http://flow-te

Nginx map - use variable multiple times or use multiple variables

2019-12-05 Thread stmx38
Hello, We use Nginx map module to sent traffic to different upstreams based on the HTTP header: map $http_flow $flow_upstream { default "http://flow-dev";; prod"http://flow-prod";; test"http://flow-test";; dev "http://flow-dev";; } location / { proxy_read_timeout 5s;