Setup my domain to go to a node application with a different port?

I currently have 1 linode setup. I have 2 domains that I want to point to my node.js app running on port 3508. How can I accomplish this?

Thanks!

6 Replies

I'd recommend setting up NGINX as a reverse proxy. That way you can automatically redirect incoming port 80 or 443 connections to port 3508. We have a reference guide on it here:

Use NGINX as a Reverse Proxy

Thanks for the suggestion.

How do I set the domain up if I want to simply use port 80 for now?

Thanks,
Adrian

Hello,

I'm not seeing the following line in Step 1 of the documentation for setting up NGINX on my server:

deb http://nginx.org/packages/mainline/ubuntu/ CODENAME nginx

Here's a link to the entire sources.list file:

https://easyupload.io/g988yv

Any advice would be great.

Thank you.

Sorry I mis-read… I'm supposed to add it :)

I got it working, thanks mjones!

I'm glad to hear it! Feel free to give me a shout if you need anything else.

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