2 maps for one 1 variable?

Steve Holdoway steve at greengecko.co.nz
Wed Apr 1 19:23:24 UTC 2015


On Wed, 2015-04-01 at 15:05 -0400, Cole Tierney wrote:
> Hello,
> 
> Is it possible to use more than one map directive with a single variable? I tried but it seems the second map over writes any value set by the 1st map even if there is no match in the 2nd map. I tried leaving out the default value in the second map.
> 
>> Cole
You can link 2 maps together by setting the default value for the second
map as the result from the first map. Unique names will be required
though.

Does that fit with what you're trying to do??

-- 
Steve Holdoway BSc(Hons) MIITP
http://www.greengecko.co.nz
Linkedin: http://www.linkedin.com/in/steveholdoway
Skype: sholdowa



More information about the nginx mailing list