negation in the map directive of nginx

teodorescu.serban nginx-forum at forum.nginx.org
Fri Sep 9 06:53:56 UTC 2022


If you want to use regexes (to negate) you should use it properly, e.g.
start with a "~".
See more: http://nginx.org/en/docs/http/ngx_http_map_module.html
That said, Francis' idea is a good one. Trying to negate things in regex is
quite counterproductive.

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,295157,295161#msg-295161



More information about the nginx mailing list