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;

Re: proxy_set_header on HTTP or Server level

2019-12-05 Thread stmx38
Francis, Basically, the issue was with the 'proxy_set_header' directives. In such cases, when we define at least one in the location, we should also define all the rests headers. >From your reply, I understand that with the 'proxy_read_timeout/proxy_send_timeout' we should not have such situation

Re: Serving a subdirectory

2019-12-05 Thread Francis Daly
On Wed, Dec 04, 2019 at 07:08:52PM +0100, Thomas Schweikle wrote: Hi there, > I'm a little bit lost now, since various configurations tried just dont > work. None of them. I'm not quite clear on what specifically you want your nginx to do. If it matters -- could you describe that? > locati

Re: Various errors while configuring nginx for certificate-based client auth

2019-12-05 Thread lucaprete
You got it! :) Some steps before I was using envsubst, which was also trying to substitute the nginx variables. Specifying what variables to substitute (i.e. envsubst '$ONLY_THIS_VAR' < mydomain.com.conf) solved the issue. Thank you! Posted at Nginx Forum: https://forum.nginx.org/read.php?2,286

Re: Various errors while configuring nginx for certificate-based client auth

2019-12-05 Thread Maxim Dounin
Hello! On Thu, Dec 05, 2019 at 06:51:17AM -0500, lucaprete wrote: > I'm using nginx in form of container (docker.io/nginx), version > 1.17.3-alpine > I'm trying to setup my nginx to do TLS auth and then forward packets to > another host in the network. > As part of this I also have to support som

Various errors while configuring nginx for certificate-based client auth

2019-12-05 Thread lucaprete
Hi guys, I'm using nginx in form of container (docker.io/nginx), version 1.17.3-alpine I'm trying to setup my nginx to do TLS auth and then forward packets to another host in the network. As part of this I also have to support some probes that continuously monitor a secondary location, same server