nginx 转发配置
location ^~/api/{
proxy_pass http://127.0.0.1:8888/;
}
location / {
root /home/project/web/dist/;
try_files $uri $uri/index.html;
}
nginx 转发配置
location ^~/api/{
proxy_pass http://127.0.0.1:8888/;
}
location / {
root /home/project/web/dist/;
try_files $uri $uri/index.html;
}