I want to redirect all of my HTTP requests to https in AWS. I use ELB for ssl certificate and using ubuntu(64-bit) os.
You have two options:
1) Use cloudfront in front of your ELB, and configure it to force everything to HTTPS
2) Add a rewrite rule to your web server configuration to redirect to https. Note that you will need to check X-Forwarded-Proto to determine if the original request was secure or not.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With