lets say, I have an location /user/username/custom/custom.css
I would like to server this location /user/(.*)/custom/
to the location /var/www/custom
I don't know, how to write NginX rules.
I tried
location ~* /user/(.*)/custom/ {
alias /var/www/custom/;
}
but such rule doesn't work.
Any suggestions please? Thank you
Ok, so finally I figured it out. The right solution (at least I hope so) is