简体   繁体   English

Google Cloud Load Balancer IP未重定向

[英]Google Cloud Load Balancer IP Not Redirecting

Good evening, I am currently trying to set up a load balancer for my server, I successfully set everything up, however when I go to google domains to set ip record I get the following error "mysite.com unexpectedly closed the connection." 晚上好,我正在尝试为我的服务器设置负载均衡器,我成功设置了一切,但是当我去google域设置ip记录时,我收到以下错误“mysite.com意外关闭了连接。”

http://prntscr.com/npm04o http://prntscr.com/npm04o

http://prntscr.com/npm0ot http://prntscr.com/npm0ot

Also when i type the ip manually in the browser I get the same error. 此外,当我在浏览器中手动输入IP时,我得到相同的错误。 However when I set my ip record to a VM machine ip that comes from my instance group the load balancer ip starts to redirect to my site. 但是,当我将我的ip记录设置为来自我的实例组的VM机器ip时,负载均衡器ip开始重定向到我的站点。 I would like to get the load balancer ip to work with my google domain records. 我想让负载均衡器ip与我的谷歌域记录一起使用。

Picture of configuration 配置图片

http://prntscr.com/npm3ye http://prntscr.com/npm3ye

I think you are connecting to the load balancer using HTTPS. 我认为您使用HTTPS连接到负载均衡器。 You do not have a front-end configured for HTTPS. 您没有为HTTPS配置前端。 Specify http:// and try again. 指定http://然后重试。 If this is not the case, then go to Stackdriver and check the logs for your HTTP(s) Load Balancer. 如果不是这种情况,请转到Stackdriver并检查HTTP(s)Load Balancer的日志。

Note: You have not provided enough information in your question. 注意:您的问题中没有提供足够的信息。 You need to provide the frontent, backend and healthcheck configurations. 您需要提供frontent,后端和healthcheck配置。

Once you have everything working, your DNS resource record TTL should be longer than 1 minute - clients will constantly have to resolve your DNS names. 一旦所有工作正常,您的DNS资源记录TTL应该超过1分钟 - 客户将不断解析您的DNS名称。 Using a CNAME instead of A record adds another lookup. 使用CNAME而不是A记录会添加另一个查找。 Use an A record instead. 请改用A记录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM