I used AWS Elastic Beanstalk to setup my website. Requesting website through HTTPS is working but HTTP is responding with "400 Bad Request The plain HTTP request was sent to HTTPS port".
I have tried setting up an HTTP listener in load balancer to redirect HTTP to HTTPS following AWS docs but did not solve the issue.
I would appreciate it if someone could point me to the right direction, I'm not very familiar with AWS. Thank you in advance.
The HTTP listener must be configured to redirect requests with all components present in the request (path, query).
HTTPS://#{host}:443/#{path}?#{query}
Status code: HTTP_301 (Redirect)

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