title: Elastic Beanstalk - Configure the load balancer to redirect HTTP to HTTPS
body: <p>I've been struggling and googling this issue for a while and although it seems to 
  me like a pretty standard requirement I couldn't find a working solution anywhere.</p>
  
  <p>I don't want to disable HTTP, only redirect it to HTTPS.
  Not between the load balancer and the EC2 instances, but between the browser and the load balancer.</p>
  
  <p>I have created an <code>Elastic Beanstalk environment (Linux)</code> for my <code>Spring Boot</code> app, 
  configured the load balancer for HTTP + HTTPS using the management console and
  configured environment variables and IP tables using <code>.config</code> files in an <code>.ebextensions</code>
  folder zipped with the app's JAR file.</p>
  
  <p>Then I tried adding an <code>NGINX</code> configuration for a permanent HTTP to HTTPS 
  redirect using a config file with a "files" key, but it doesn't seem to have any effect.</p>
  
  <p>Thanks</p>