Welcome! Log In Create A New Profile

Advanced

Re: map $uri in 1.3.0+ NOT working in 1.6.0+

October 03, 2014 12:58AM
Turns out that this was a mis-configuration on our end and that it works great in 1.6.0+

We had the issue on a test server that had 2 sites sharing the same IP address but moreover both sites assigned the $use_secure variable so it was being overwritten by the 2nd site and always set to 0 b/c of no match of a URI with the 1st site against the 2nd site. Resolution was simple... I just suffixed the variables appropriately for each site... e.g. $use_secure_xx and $use_secure_yy and the problem went away.

Wasted a lot of time trying to debug. Perhaps Nginx "can" be smarter and catch such a situation (i.e. that 2 or more map directives set the same variable) and perhaps issue a warning. Either way though no big deal... it just was hard to pin down... as it involved multiple file domain configs.
Subject Author Posted

map $uri in 1.3.0+ NOT working in 1.6.0+

nikolaos2012 October 02, 2014 11:08PM

Re: map $uri in 1.3.0+ NOT working in 1.6.0+

nikolaos2012 October 03, 2014 12:58AM

Re: map $uri in 1.3.0+ NOT working in 1.6.0+

Valentin V. Bartenev October 03, 2014 05:02AM

Re: map $uri in 1.3.0+ NOT working in 1.6.0+

nikolaos2012 October 03, 2014 09:04AM

Re: map $uri in 1.3.0+ NOT working in 1.6.0+

Valentin V. Bartenev October 03, 2014 03:00PM

Re: map $uri in 1.3.0+ NOT working in 1.6.0+

nikolaos2012 October 04, 2014 12:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 179
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