What is the most efficient way to determine a location directive that matches something like
location = /[0-9a-zA-Z_-]{1,6} { content_by_lua_file ....}
In other words, a URI that matches a string of 1 to 6 characters with the digits "-", "_", numbers and letters.
Or itβs faster to check the string length in my LUA code, which will generate the result using the location directive, for example,
location / {content_by_lua_file...}
regex webserver nginx
user1606908
source share