News for hackers. Stuff that matters.
Re:Improve your beta-testing with Nginx, Lua and Redis by runningdogx on Wednesday June 27, 2012 @10:03AM (#4166941)
With 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_]+)/ {
Re:Improve your beta-testing with Nginx, Lua and Redis by newman314 on Wednesday June 27, 2012 @10:07AM (#4166964)
Newer versions of pcre and nginx also include the ability to use the pcrejit which provides a nice speedup for regex.
Re:Improve your beta-testing with Nginx, Lua and Redis by transmit101 on Wednesday June 27, 2012 @10:05AM (#4166947)
Thanks. I didn't know that. I did strip out a lot of the more advanced/ambiguous Nginx config for clarity though.