Hacker News new | ask | show | jobs
by swindsor 5816 days ago
Oh, that's cool - I didn't know you could use matches from a location in an alias. Is that a new feature in nginx?
1 comments

I think it's always been a feature of nginx:

    location ~ "/(.*)" {
        root /whatever/$1;
You could even do:

        set $subdir $1;
so that it can be used in another location handler.