Nginx. Wild card Alias location. Is it possible?
You need a little background about regex.
Please try the code below and see if it helps.
location ~ ^/([^/]+)/([^/?]+)$ {
alias /home/website/profiles/$1/$2;
}
You need a little background about regex.
Please try the code below and see if it helps.
location ~ ^/([^/]+)/([^/?]+)$ {
alias /home/website/profiles/$1/$2;
}