title: Rails on Elastic Beanstalk, Can't do a load balancer health check
body: <p>I am running a rails app on elastic beanstalk, my problem is that I cannot use the load balancer health check, as it checks via http, not https. I have config.force_ssl set to true, and don't really want to change it, since it means I have 100% ssl coverage, HSTS, and secure cookies.
  I have setup a controller to check at /health and can access this via curl.
  There seems to be a contradiction between what is shown in elastic beanstalk (EC2 Instance Health Check), where I can only change the path and some timings, and the health check in the load balancer in EC2, where I can change the ping protocol, port and path to what I want, but this seems to have no effect other than causing a 503 error.</p>
  
  <pre><code>Ping Protocol: https 
  Ping Port: 443 
  Ping Path: /health
  </code></pre>
  
  <p>The load balancer has ports 80 and 443 open but redirects from 80 to 443 due to force_ssl.</p>
  
  <p>Does anyone know of the correct settings to get around this, as I won't be able to scale the application without it?</p>
  
  <p>Thank you</p>
  
  <p>Eamon</p>