N
N
newaitix2017-01-22 21:32:31
Windows
newaitix, 2017-01-22 21:32:31

How to put a nodejs server on a domain under windows?

I have a server up on port 3000. How can I make a beautiful google.com from such an address 127.0.0.1:3000 ))?

http.createServer(function(req,res){
}).listen(3000);

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artem @Jump, 2017-01-22
curated by the

How to put a nodejs server on a domain under windows?
Explain exactly what you want to do. The phrase is not clear.
How can I make a beautiful google.com out of such an address 127.0.0.1:3000
Very simple.
Add an entry to the hosts file -
127.0.0.1 google.com

A
Alexander Bublikov, 2017-01-22
@bublik462

If we are talking about a test on a local machine, then this is the case of VirtualHosts.
And you can put a domain there. wow, com doesn't seem to work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question