Steps I have taken:
- Enabled 80 HTTP -> 80 HTTP and 443 HTTPS -> 80 HTTP on my load balancer in Elastic Beanstalk
- Aliased my Route53 hosted zone for both www and apex A records to my load balancer
- Set up the SSL certificate
- Used the default ASP.NET React Template with HTTPS Redirection
- Added
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
in .csproj since EB doesn't use 2.1 yet. - Deployed with Visual Studio AWS Tools
What works:
https://www.example.com works
https://example.com works
What doesn't work:
http://example.com won't redirect to https://example.com
http://www.example.com won't redirect to https://www.example.com
I know in the past you had to write custom extension methods to get this to work with AWS LBs. Does anyone have a working example using the standard templates?