Upload localhost application to online subdomain (hosted on my computer)

0

I've always picked up everything related to servers and stuff. I'm running an application that uses the famous , and my hosting does not supports it. So just for online testing I wanted to make my application "locally localized", have online access with an online subdomain, my computer being the server of everything.

I have read some things about changing the hosts file (I use Windows) but I did not get much success.

Can any soul help me here?

    
asked by anonymous 10.03.2014 / 05:15

2 answers

3

First, DNS (which you call "online subdomain") should have an entry pointing to your IP.

Secondly, uploading an application written in , it is already in theory exposed to the internet. What you would need to do is a port reapplication, which can be done by a software called reverse proxy , like Nginx , for example, and the release of the port in Firewall.

Third, what the hosts file does is simulate this DNS entry only on your machine. It does not replicate DNS to the internet. Who does this is the DNS authority that holds your domain.

Fourth, the interesting thing in your niche would be to deploy the application to a machine other than yours. Here has a list of servers that support Node.js.

    
10.03.2014 / 05:46
2

If you really want to see your app on your machine online in some domain, you've already tried DDNS ? noip for example? I've already made my machine accessible online via subdomain noip + settings on my router. My router uses DD-WRT and has functionality to automatically update my ip in noip services, as soon as I connect, the router sends a command with my new ip pro noip and the noip configures the domain to point to my machine. It is also possible to find DDNS services that accept personal domain, formerly if I am not mistaken DNSPark offered this and I wore it. Another thing is that non-business DSL connection, type speedy, will block access on port 80, 8080 and other common servers.

    
10.03.2014 / 06:11