Omit port 3000 in the nodejs application url

I have configured my nodejs application to run on a subdomain and used forever to run the application.

Now an address of this application looks like: sub1.xyz.com:3000/route1

How can I go from there to sub1.xyz.com/route1??

I have other applications running on other subdomains.

1 Reply

Hey there -

I did some research for you on this, and found that you should be able to do this if you change the port that node.js is running on from 3000 to 80. Here's a page that describes how to do it:

Node.js - How can I remove the port from the url?

I hope that helps you out!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct