[bug]: 无法访问前端
Closed this issue · 1 comments
Altria002 commented
版本情况
Campus版本: v1.0.11(请确保最新尝试是否还有问题)
问题描述
使用v1.0.11提供的dist文件,宝塔部署的前端
- 复现代码
location / {
root /www/wwwroot/192.168.183.128/dist;
try_files $uri $uri/ /index.html;
index index.html index.htm;
}
location /prod-api/ {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:8160/;
}
- 测试涉及到的文件
问题截图(如有)
补充说明(可选)
Altria002 commented