Mrugesh
Mrugesh

Reputation: 4517

how to remove port number from url in aws while connecting to the API server

I am able to connect to my Nodejs API server through aws by entering url such as ip + :3000. Now I do not want to show port no 3000 after url. is there any way to hide this or this will be there compulsory?

Upvotes: 2

Views: 2214

Answers (1)

Daniel Scott
Daniel Scott

Reputation: 7913

You can't do this on the client side. You need to do one of:

  1. Have your nodejs server running on port 80/443
  2. Run a webserver (apache,nginx) on your nodejs server as a reverse proxy
  3. Use a load balancer.

Upvotes: 3

Related Questions