title: AWS - ELB - Magento2 How do I perform health checks
body: <p>I have an ELB setup for my Magento2 application. The application is running on EC2 instances. In Magento 2 I need to specify a base url for the site. I am setting that as my load balancer public dns.</p>
  
  <p>When the ELB performs Health Checks on the individual EC2 Instances they are returning a 302 as magento is trying to redirect the call to the public dns record for the ELB.</p>
  
  <p>How do I deal with this?</p>
  
  <p>I created a file <code>health.html</code> and placed this in the root magento folder on the EC2 instances.</p>
  
  <p>I updated the health check to load /health.html.</p>
  
  <p>This works fine and the Load Balancers are able to direct traffic to these instances as they are healthy.</p>
  
  <p>This is not really ideal and mainly served to verify configurations between M2 and the ELB and EC2 instances.</p>
  
  <p>I would like the health check to make sure Magento2 is actually healthy. </p>