麦粉社区
>
帖子详情

smartbix代理问题

其它 发表于 2024-4-7 14:59
发表于 2024-4-7 14:59:49

nginx 代理访问smartbix路径,如何配置nginx代理

发表于 2024-4-7 16:16:45
是要干啥?只是配置代理,可以看看这个文档的说明:https://wiki.smartbi.com.cn/page ... mp;pageId=114988207
  •   ainmime
    我们现在是要集成自助仪表盘,然后需要做nginx代理,我配置了两个,location /vision/{
    proxy_pass  http://ip:18080/vision/;
    ...
    ...
    ...
    }
    
    location /smartbix/{
    proxy_pass  http://ip:18080/smartbix/
    ...
    ...
    ...
    
    },但是我现在访问/smartbix 这个代理访问不通,显示404
    
    2024-4-7 16:19| 回复
  •   ainmime
    https://wiki.smartbi.com.cn/pages/viewpage.action?smt_poid=43&pageId=76678699
    不建议proxy_pass配置到/vision级别 ,这样重定向会有问题,proxy_pass的地址只配置到/smartbi级别就行,具体如;
    proxy_pass http://192.168.1.10:8080/smartbi/ ;
     因为如果这样配置,在smartbi v8以上版本遇到访问smartbix路径下的资源时,会出现404的情况。
    
    是不是因为这个原因,那这里要怎么修改呢
    
    2024-4-7 16:20| 回复

回复

使用道具 举报

发表于 2024-4-7 17:26:29
正常来说按照你找的wiki,上面不是有个示例的吗?
proxy_pass http://192.168.1.10:8080/smartbi/ ;
回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

4回帖数 0关注人数 1121浏览人数
最后回复于:2024-4-7 17:26
快速回复 返回顶部 返回列表