Quantcast
Channel: Active questions tagged amazon-ec2 - Stack Overflow
Viewing all articles
Browse latest Browse all 29250

How to proper set up HTTPS on AWS EC2?

$
0
0

👋

I'm running into problems while trying to run my API that's hosted on AWS EC2 through a HTTPS protocol.

The API runs normally without the ELB setup, however, after trying to configure (I follow the recommended steps), I get the 502 Bad Gateway message.

Here's my configuration:

  • AWS EC2 (t3a.small) running a docker container of my ExpressJS app listening on port 3000;
  • Security group with http:80 and https:443 open;
  • ACM that covers the following domains (mydomain.com, *.mydomain.com);
  • ELB listening to ports: http:80, https:443, https:3000;
  • Route 53 with my hosted zone containing the A-type record with the ELB DNS value;

Previously URL

http://ec2-ip-address.zone.compute.amazonaws.com:3000/api/

Now

https://api.mydomain.com:443/api/{resourceName}

Please, I will appreciate any insight on how to properly set up in case I missed something let me know.


Viewing all articles
Browse latest Browse all 29250

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>