宝塔部署vue前端404及接口问题

Posted 嘿起屁儿整

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了宝塔部署vue前端404及接口问题相关的知识,希望对你有一定的参考价值。

页面刷新404

 location / 
		root /www/wwwroot/nodeweb/dist;
        index  index.html index.htm;
        try_files  $uri $uri/ /index.html;
 

代理配置跨域

location ^~/api/ 
     proxy_pass http://43.138.234.143:3000/api/;

以上是关于宝塔部署vue前端404及接口问题的主要内容,如果未能解决你的问题,请参考以下文章