S
S
Synakten2017-09-25 15:47:50
Node.js
Synakten, 2017-09-25 15:47:50

How to display domain name instead of ip:port on nodejs?

Hello everyone, I'm a beginner web developer. I made a project on nodejs and decided to deploy it. I chose mirohost hosting, chose the eVPS tariff, gitcloned the project, started the server on port 3000 using pm2, everything worked, and then there was a problem, how to put a domain name instead of the displayed IP address and port, so that the address in the input line would look like myadres.com, and not 23.123 .32.123:3000
I tried to change the port to 80 and the site is no longer displayed, changing to another port everything works. I read the pm2 documentation, I didn’t find an answer, there were attempts to create an ecosystem.json file, but I can’t edit it and I’m not entirely sure that this will solve the problem, tech. hosting support is silent.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
Hikmat Abdunabiev, 2017-09-25
@Khikmat

https://www.digitalocean.com/community/tutorials/h...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question