server{
listen 8000;
server_name oa.hndmjt.com:8000;
root /home/项目文件夹/dist/;
index index.html;
location /{
try_files $uri $uri/ /index.html;
}
location /api {
include uwsgi_params;
proxy_pass http://www.***.com/api;
}
}
网友评论