简体   繁体   中英

Nginx server failing health checks on AWS ELB (Elastic Load Balancer)

I have a node.js server and nginx reverse proxying to it on an EC2 instance hosting a webapp, and I'm trying to set up load balancing via AWS ELB. The server is on a private subnet (testing purposes, nothing is public currently).

The instances is accessible by

  1. Connecting to a VPN to access the private subnet and then typing the private ip address in the address bar of my browser. It serves the page just fine.

  2. Via ssh

  3. I can also ping the instances with ping ipaddress and they respond

However ELB claims that all my instances are failing a health check. I initially had the ping target at / but I tried different ones and it still claims that the instances are "OutOfService".

原来我的安全组配置不正确-实例被阻止接收来自负载平衡器的流量。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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