title: Forcing HTTPS when using opsworks nginx and ELB to terminate SSL
body: <p>Using Opsworks standard setup/recipes for a Rails app served via Unicorn/nginx layer.  SSL is terminated at the Elastic Load Balancer - so traffic to the rails app from ELB is always http.  So far so good.  I would like to have any request to <a href="http://domain.com" rel="nofollow">http://domain.com</a> to be redirected to <a href="https://domain.com" rel="nofollow">https://domain.com</a></p>
  
  <p>ELB has two listeners - one with port 80, and one 443.</p>
  
  <p>I know that if I were running my own nginx I could setup a redirect rule... However, i want to stay within the opsworks way of doing things if possible.</p>