How to redirect http to https for a reactJs SPA behind AWS Elb?

Viewed 14001

I chose to use express server for deployment as pointed to in deployment section of create-react-app user guide. The express server is set up on an EC2 instance and is fronted by an AWS Elb, where the SSL terminates. How do I setup redirection of http requests to https?

I am open to using Nginx as well, if there is a solution.

Appreciate any help.

3 Answers
Related