nginx

vue 项目,共存

location /xxxx/ {
alias /tmp/xxxx
index index.html index.htm index.php;
try_files uri @routerXXXX;
}
location @routerXXXX {
rewrite /xxxx/index.html last;
}

你可能感兴趣的:(nginx)