简体   繁体   中英

How do I set up my application/EC2 instance so that I don't have to put the port number at the end of the IP?

I'm trying to point my domain to my EC2 instance but it isn't working because my EC2 needs the port (:3000) at the end of the IP in order to be resolved. I'm having a really difficult time finding information on this, any help would be appreciated!

You can set up an internet facing load balancer to redirect the port 80 from public access to your ec2 instance with any port.

internet users -> hit your new created load balancer with port 80 or 443 -> set redirection rules to backend (ec2:port)

There are several types of aws loadbalancer, you can start with Elastic load balancer

if you want to save the cost, you can install nginx or haproxy on your ec2 instances to expose the port 80 directly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM