nginx在转发html项目时候遇到虚拟路径问题,可以用try_files 来解决
location /project {
alias /icelove/webapps/html/project;
index index.html index.htm;
try_files $uri $uri/ /project/index.html;
include proxy.conf;
}
nginx在转发html项目时候遇到虚拟路径问题,可以用try_files 来解决
location /project {
alias /icelove/webapps/html/project;
index index.html index.htm;
try_files $uri $uri/ /project/index.html;
include proxy.conf;
}