Node js on subdomain

lasse48

New member
Joined
Jul 16, 2024
Messages
4
Hello.

In (Advanced Features -> Nginx Unit -> Unit Applications) It seems i can only select an main domain in Working directory?
My question is how do i create a node app on a subdomain?
Would be nice if i could have two node apps running on for example:
domain.com
sub.domain.com

Is there a way to do this?

Thanks
 
I don't know for sure, but this is maybe similar to the separate PHP version solution we used to have to do. That solution was adding the subdomain as a regular domain (not via the Subdomains feature).

You could try that and see if it works.
 
I don't know for sure, but this is maybe similar to the separate PHP version solution we used to have to do. That solution was adding the subdomain as a regular domain (not via the Subdomains feature).

You could try that and see if it works.

Cant believe it!
Did what you said and it works perfectly.
You are a lifesaver adam! thank you.
 
Back
Top