Hacker News new | ask | show | jobs
by Vidart 5095 days ago
It's not a magic. It's just an optimization. Prefixed strings are organized to the radix tree for fast configuration lookup.

But the only way to deal with regexps is to execute them sequentially.

btw, the official doc is here: http://nginx.org/en/docs/http/ngx_http_core_module.html#loca...