一.前端配置Nginx
在server结点下添加
location / {
root /usr/local/software/front/dist;
index index.html index.htm;
}
![](https://img-blog.csdnimg.cn/img_convert/b69d88262880683306400c3b2f9ef999.png)
二.重启nginx
./nginx -s reload
![](https://img-blog.csdnimg.cn/img_convert/1c309fb2c71f948721f73fc658c475eb.png)
一.前端配置Nginx
在server结点下添加
location / {
root /usr/local/software/front/dist;
index index.html index.htm;
}
二.重启nginx
./nginx -s reload