docker+nginx部署的前端问题?-灵析社区

ZZZ葡萄皮

docker+nginx部署的前后端分离项目,如果我nginx没有配置代理的话就可以打印index.html的内容但是空白页面,我一旦nginx代理了,就报系统异常,是怎么回事呀 没有启用nginx代理的情况 ![image.png](https://wmlx-new-image.oss-cn-shanghai.aliyuncs.com/images/20241024/26ec87b3acc86fe4eb219f4a1985118f.png) ![image.png](https://wmlx-new-image.oss-cn-shanghai.aliyuncs.com/images/20241024/84ec2aee0e03eaf8d608c6365cf3c3eb.png) 启用nginx代理的情况 ![image.png](https://wmlx-new-image.oss-cn-shanghai.aliyuncs.com/images/20241024/6c07ed4849148f55548e2ce4f9534609.png) ![image.png](https://wmlx-new-image.oss-cn-shanghai.aliyuncs.com/images/20241024/df4ed0be06c6622fb05dd9e4e4288160.png) 能部署上docker前端页面也不至于空白页面呀,后端已经部署上docker上并用postman测试了能调用数据

阅读量:31

点赞量:0

问AI
winkkkkk9421
尝试下在root以/结尾