0
点赞
收藏
分享

微信扫一扫

nginx配置前缀后前端404问题解决

GhostInMatrix 2022-01-04 阅读 36

配置
1、publicPath: “./”
2、nginx配置/aaa前缀

location /aaa {                                                                                                                                                
    root /opt/zhjg/page;
    index  index.html;
}    

/opt/zhjg/page里面的前端包将名称改成/aaa

举报

相关推荐

0 条评论