Is there any way to connect a project made in node.js direct to a domain?

0

Well, my problem is because I have a site open on port 80 and a project made on open node on port 8080. I own the domain: link , trying to access it only directs all subdomains to my site (causing my application to run out of domain), is there any way I can make the app point to a subdomain? In the case: link , I use Xampp. Can anyone explain or give me guidance?

  

Another possible output would be a way to run * .php in my app,   so I could fit the page I want to the application.

    
asked by anonymous 17.04.2018 / 19:58

1 answer

1

There is no problem in using port 8080 for this. Although possible, you do not need Xampp to provide an application node, it itself creates an http server and listens on the defined port.

First of all, your application must be accessible through port 8080, ie the port must be open on your server and the application running on it. After that, you need to access your domain provider and search there how to create a subdomain pointing to your server IP together with port 8080 (ex: 127.168.0.1:8080). Each provider will do this differently, and some will not even allow it to do so through the interface, so you would have to email them. You will probably have to configure the CNAME for this.

Maybe it helps: link

    
09.05.2018 / 21:57