Comment

Comment by runningdogx

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_]+)/ {
parent runningdogx 14 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton