VPS侦探论坛

标题: GCE的负载均衡后端搭建的是2个LNMP,但是无法访问,求助下军哥 [打印本页]

作者: jj168abc    时间: 2018-6-15 23:54
标题: GCE的负载均衡后端搭建的是2个LNMP,但是无法访问,求助下军哥
GCE的负载均衡后端搭建的是2个LNMP,但是无法访问,求助下军哥。访问前端显示502错误
错误的具体提示:Error: Server ErrorThe server encountered a temporary error and could not complete your request.Please try again in 30 seconds.


Nginx 的配置 我不知道对不对?


我在默认的nginx.cof配置文件:增加两个 Header,然后 Reload。

  1. add_header X-Tlo-Hostname $hostname always;

  2. add_header Cache-Control "max-age=36000, public";
复制代码

[ 本帖最后由 jj168abc 于 2018-6-15 23:55 编辑 ]
作者: licess    时间: 2018-6-16 18:17
不大清楚,没用过gce的均衡负载




欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/) Powered by Discuz! X3.4