root的使用
location /assets/ { root /git/shortUrl/dist/; }
当user访问 http://domain/assets/a.js
时,nginx把请求映射为/git/shortUrl/dist/assets/a.js
alias的使用
location /assets/ { alias /git/shortUrl/dist/; }
当user访问 http://domain/assets/a.js 时,nginx把请求映射为/git/shortUrl/dist/a.js