Created a new website, and it is working correctly only when I prefix with http://
It does not work for https://
I tried following all the steps, creating a cloud front distrubution, and the link for that distribution domain name works fine with https.
And so I tried adding a DNS record of type A alias to cloudfront, and pasted the link from cloudfront there, but when I try now my site with https it says:
403 ERROR
The request could not be satisfied.
Bad request. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.
Generated by cloudfront (CloudFront)
Request ID: BjGIQWWgqRwKEu-_SMthMcr5zrAvYPDpW4_zppYq-GDLe2w4PMrTTQ==
5