Different Naxsi rulesets

Aziz Rozyev arozyev at nginx.com
Mon Nov 13 13:14:51 UTC 2017


At first glance config looks correct, so probably it’s something with naxi rulesets.
Btw, why don’t you use maps? 

map $geoip_coutnry_code $strictness {
  default “strict";
  CC_1    “not-so-strict";
  CC_2    “not-so-strict";
  # .. more country codes;
}

# strict and not-so-strict locations

map $strictness $path {
   "strict”         "/strict/";
   "not-so-strict”  "/not-so-strict/“;
}

location / {
   return 302 $path;
   # .. 
}
 

br,
Aziz.





> On 12 Nov 2017, at 14:03, Jean-Paul Hemelaar <hemelaar at desikkel.nl> wrote:
> 
> T THIS WORKS:
>      # include /usr/local/n



More information about the nginx mailing list