я хочу указать /m/v2/
, а затем случайный путь ,, например, apc, tcb
и так далее. К /var/www/app
. Но моя конфигурация показывает 404
location ~* ^/m/v2/([a-z]+)/(.*)$ {
try_files $uri $uri.html $uri/ @htmlext;
alias /opt/www/app/;
index myInterest.html;
access_log logs/app_v2_access.log main;
}
location @htmlext {
rewrite ^(.*)$ $1.html last;
}