Domain Help

Status
This thread has been locked.

Boat

Premium
Feedback score
6
Posts
170
Reactions
118
Resources
0
so I tried looking for answers on the internet but nothing useful came up.

I have 2 node.js applications running on the same vps. One on port 8080, one on 8081. Currently if I connect to the applications using my browser I have to type in ip:8080/8081. How could I manage my domains so that instead of having to type the ip, I can do sub1.domain.com for ip:8080 and sub2.domain.com for ip:8081.
I tried using Nginx but node.js applications break through it for some reason

Domain is hosted in namecheap
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Jayson

Supreme
Feedback score
17
Posts
1,258
Reactions
741
Resources
0
To remove the port, it's called use port 80 or 443 and utilize a NGINX server block. Or well, just create a NGINX server block.
 
Last edited:

Boat

Premium
Feedback score
6
Posts
170
Reactions
118
Resources
0
You should contact Namecheap live support, they usually reply within two minutes and their customer service is top quality.
I try to avoid their support and do things myself to learn ;P I'll contact them as last resort.
<3
To remove the port, it's called use port 80 or 443 and utilize a NGINX server block. Or well, just create a NGINX server block.
Yes I know about port 80, but that only works for 1 node.js thing. I have 2 running on the same vps.
Setup NGINX (or pay me to do it) and have it act as a proxy.
Tried, it just fucks up the node.js things entirely and makes them look odd.
 
Last edited:
Status
This thread has been locked.
Top