Comment on Improve your beta-testing with Nginx, Lua and RedisComments−runningdogx14yWith a modern pcre library version and nginx, instead of location ~ ^/([a-zA-Z0-9_]+)/ { set $username $1; you can use named captures location ~ ^/(?<username>[a-zA-Z0-9_]+)/ {−newman31414yNewer versions of pcre and nginx also include the ability to use the pcrejit which provides a nice speedup for regex.−transmit101OP14yThanks. I didn't know that. I did strip out a lot of the more advanced/ambiguous Nginx config for clarity though.
Comments
With a modern pcre library version and nginx, instead of
you can use named capturesNewer versions of pcre and nginx also include the ability to use the pcrejit which provides a nice speedup for regex.
Thanks. I didn't know that. I did strip out a lot of the more advanced/ambiguous Nginx config for clarity though.