Nginx configuration issues

  node.js, question
location /admin/ {
 root   /aaa/dist;
 index   index.html ;

For example, nginx inside has the above configuration, assuming the domain name is
Then I will go to this directory to load this static html:/aaa/dist/admin/index.html
Now, if I want to use/admin/After the url to find static files, how should it be configured? That’s what I hope this one matches now./admin/In part, when searching for static files, do not appear in the path again, such as the url, I hope nginx can take the url directly to the root directory to find, that is, to find/aaa/dist/index.htmlHow should we allocate it?

Try changing root to alias.
alias /aaa/dist/;