VPS侦探论坛

 找回密码
 注册
查看: 2858|回复: 1

GCE的负载均衡后端搭建的是2个LNMP,但是无法访问,求助下军哥

[复制链接]
发表于 2018-6-15 23:54:26 | 显示全部楼层 |阅读模式

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 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2018-6-16 18:17:21 | 显示全部楼层


不大清楚,没用过gce的均衡负载
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-24 01:27 , Processed in 0.024411 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表