钉钉集成nginx部署问题

反向代理之后不成功,还是访问不到报表服务器。是什么原因?

thysai_st 发布于 2019-5-8 14:23
1min目标场景问卷 立即参与
回答问题
悬赏:6 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共1回答
最佳回答
0
yuzhimingLv2初级互助
发布于2019-5-8 14:35

一般情况下是不需要做代理的。做端口映射即可。

server {

        listen       8075;

        server_name  外网IP;


        charset UTF-8;


        #access_log  logs/host.access.log  main;


        location / {

            proxy_redirect off;

            

proxy_pass http://127.0.0.1.:8075;

        }


        #error_page  404              /404.html;


        # redirect server error pages to the static page /50x.html

        #

        #error_page   500 502 503 504  /50x.html;

        location = /50x.html {

            root   html;

        }

}


  • 2关注人数
  • 579浏览人数
  • 最后回答于:2019-5-8 14:35
    请选择关闭问题的原因
    确定 取消
    返回顶部