title: AWS Elastic Beanstalk health check issue
body: <p>My web application is Django and web server use Nginx, use Docker image and Elastic Beanstalk for deployment.</p>
  
  <p>Normally there was no problem, but as the load balancer expands EC2, my web server becomes 502 Bad Gateway.</p>
  
  <p>I checked Elastic Beanstalk application logs, about 16% of the requests returned 5xx errors, at which time the load balancer expands EC2, causing the web server to transition to the 502 Bad Gateway state and the Elastic Beanstalk application to the Degraded state.</p>
  
  <p>Is this a common problem when the load balancer performs a health check? If not, how to turn off the Health Check?</p>
  
  <p>I am attaching a captured image for reference.</p>
  
  <p><a href="https://i.stack.imgur.com/RFkwH.png" rel="noreferrer"><img src="https://i.stack.imgur.com/RFkwH.png" alt="enter image description here"></a></p>